OptionsFormElementBuilder
To quickly create a list of options, either as a select, list of checkboxes or list or radio buttons.
bootstrap-select support
If you want to create a more advanced bootstrap-select dropdown instead of a simple HTML select, you can do so by specifying a SelectFormElementConfiguration
object.
See the respective javadoc for all configuration properties.
The SelectFormElementConfiguration
allows you to configure the default text for the control.
These properties support message code text snippets which will be replaced if a SelectFormElement
is built using the OptionsFormElementBuilder
.
The following default message codes are used:
Property | Message code | Default text |
---|---|---|
|
BootstrapUiModule.SelectFormElementConfiguration.selectAllText |
Select all |
|
BootstrapUiModule.SelectFormElementConfiguration.noneSelectedText |
Nothing selected |
|
BootstrapUiModule.SelectFormElementConfiguration.maxOptionsText |
Limit reached ({0} items max) |
|
BootstrapUiModule.SelectFormElementConfiguration.countSelectedText |
{0} items selected |
|
BootstrapUiModule.SelectFormElementConfiguration.countSelectedText |
Deselect all |
Message code replacement is performed when SelectFormElementConfiguration.localize() is called.
This is done automatically when using an OptionsFormElementBuilder .
|