https://kotlinlang.org logo
Title
w

WildOne (Yuri)

11/23/2020, 9:12 AM
For example, how do I refer to other objects in the View by ID/CSS selector?
s

Saul Wiggin

11/23/2020, 10:48 AM
You can use R.layout.id to get the id of the view object. The latest way to do this in a fragment is with viewbinding where you bind the view and access the elements through the binding. This replaces the old method of findViewById.
i

Irving Rivas

11/23/2020, 3:02 PM
@Saul Wiggin you’re thinking Android 😉
@WildOne (Yuri) I think it’s not possible (caveat: relatively little experience with TornadoFX). You could have what you need to access exposed as a public instance variable to achieve a similar effect. (Definitely not saying this is a “best practice” — I don’t know enough to dish out those; but it may help you carry on)
r

Ruckus

11/23/2020, 3:59 PM
There is a #tornadofx channel