isEnabled

fun Property.isEnabled(control: Control, data: Map<String, Any?>): Boolean

Check if the property is enabled from the control rule if it exists. The data property is necessary because rules are based on a condition in relation to another field.

val property = StringProperty()
val control = Control(scope = "#/properties/string")
val enabled = property.isEnabled(control, emptyMap())

Return

true if the property is enabled

Parameters

data

field values of the form.