You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
You can attach a listener to a BooleanProperty that makes a Field editable. But of course you need to capture the Field (as in com.dlsc.formsfx.model.structure.Field) first if you're not doing that already.
You can then do something like (kotlin):
funbindEditable(test:BooleanProperty) {
field.editable(test.property.get()) //Init the field to the value, don't wait for a change
test.property.addListener { _, _, newValue:Boolean-> field.editable(newValue) }
}
There might be a better way using bindings, but this works for me. Hope it helps.
Hello, is it possible to disable a field (setting) or a group?
The text was updated successfully, but these errors were encountered: