fun <T : Node> T.visibleWhen(predicate: ObservableValue<Boolean>): <ERROR CLASS>
This extension function will automatically bind to the visibleProperty of the given node and will make sure that it is visible, if the given predicate an observable boolean value equals true.
See Also
fun <T : Node> T.visibleWhen(expr: () -> ObservableValue<Boolean>): T
This extension function will automatically bind to the visibleProperty of the given node and will make sure that it is visible, if the given expr returning an observable boolean value equals true.
See Also