isToggle
Check if BooleanProperty is a toggle based on the format.
val booleanProperty = BooleanProperty()
val control = Control(
scope = "#/properties/boolean",
options = Options(format = Format.Toggle)
)
val isToggle = booleanProperty.isToggle(control)
Content copied to clipboard
Return
true if the BooleanProperty is a toggle
Parameters
control
Field contained in the com.paligot.jsonforms.kotlin.models.uischema.UiSchema