Class CheckboxBuilder
java.lang.Object
io.openems.edge.core.appmanager.formly.builder.FormlyBuilder<CheckboxBuilder>
io.openems.edge.core.appmanager.formly.builder.CheckboxBuilder
- All Implemented Interfaces:
OnlyIf<CheckboxBuilder>
,Self<CheckboxBuilder>
A Builder for a Formly Checkbox.
{ "key": "key", "type": "checkbox", "templateOptions": { "label": "label", "required": true }, "expressionProperties": { "templateOptions.required": "model.PROPERTY" }, "hideExpression": "!model.PROPERTY", "defaultValue": "defaultValue" }
-
Field Summary
Fields inherited from class io.openems.edge.core.appmanager.formly.builder.FormlyBuilder
jsonObject, templateOptions
-
Constructor Summary
-
Method Summary
Methods inherited from class io.openems.edge.core.appmanager.formly.builder.FormlyBuilder
addWrapper, disabled, getDefaultValue, getExpressionProperties, getValidators, hide, hideKey, isRequired, onlyShowIf, readonly, self, setCustomValidation, setCustomValidation, setCustomValidation, setDefaultValue, setDefaultValue, setDefaultValue, setDefaultValue, setDefaultValueCases, setDefaultValueWithBooleanSupplier, setDefaultValueWithStringSupplier, setDescription, setKey, setLabel, setLabelExpression
-
Constructor Details
-
CheckboxBuilder
-
-
Method Details
-
requireTrue
Requires the checkbox to be checked.- Parameters:
l
- the language of the message- Returns:
- this
-
build
public com.google.gson.JsonObject build()- Overrides:
build
in classFormlyBuilder<CheckboxBuilder>
-
getType
- Specified by:
getType
in classFormlyBuilder<CheckboxBuilder>
-