Class SelectGroupBuilder
java.lang.Object
io.openems.edge.core.appmanager.formly.builder.FormlyBuilder<SelectGroupBuilder>
io.openems.edge.core.appmanager.formly.builder.SelectGroupBuilder
- All Implemented Interfaces:
OnlyIf<SelectGroupBuilder>
,Self<SelectGroupBuilder>
A Builder for a Formly Select Group.
{ "key": "key", "type": "formly-option-group-picker", "templateOptions": { "label": "label", "required": true, "options": OptionGroup[] }, "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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddOption
(OptionGroup optionGroup) Adds aOptionGroup
to thisSelectGroupBuilder
.com.google.gson.JsonObject
build()
protected String
getType()
setMulti
(boolean isMulti) 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
-
SelectGroupBuilder
-
-
Method Details
-
getType
- Specified by:
getType
in classFormlyBuilder<SelectGroupBuilder>
-
addOption
Adds aOptionGroup
to thisSelectGroupBuilder
.- Parameters:
optionGroup
- theOptionGroup
to add- Returns:
- this
-
setMulti
-
build
public com.google.gson.JsonObject build()- Overrides:
build
in classFormlyBuilder<SelectGroupBuilder>
-