Hi guys! I've question, how can I reuse a componen...
# tornadofx
s
Hi guys! I've question, how can I reuse a component without creating new view? Let me explain: I have
RootScreen
, in this screen I have the
showProgress()
and
hideProgress()
. These methods are updating the progressProperty, and I want to create here a progress val like this:
Copy code
protected val progress = progressbar { visibleWhen { progressProperty } }
Now, I want to reuse this component in my screens, by only calling "progress" and I want to delegate where the progress should be shown (for example, in a stackpane, centered). Is there any way? Or my approach is wrong?