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