| Package | Description |
|---|---|
| com.foreach.across.modules.bootstrapui.elements | |
| com.foreach.across.modules.bootstrapui.elements.builder |
| Modifier and Type | Method and Description |
|---|---|
SelectFormElementConfiguration |
SelectFormElement.getConfiguration()
Get the attached bootstrap-select configuration if there is any.
|
static SelectFormElementConfiguration |
SelectFormElementConfiguration.liveSearch()
Creates a default bootstrap-select configuration with live search enabled.
|
SelectFormElementConfiguration |
SelectFormElementConfiguration.localize(@NonNull Locale locale,
com.foreach.across.modules.web.support.LocalizedTextResolver localizedTextResolver)
Create a localized copy of the current configuration.
|
SelectFormElementConfiguration |
SelectFormElementConfiguration.setActionsBox(boolean actionsBox)
When set to true, adds two buttons to the top of the dropdown menu (Select All & Deselect All).
|
SelectFormElementConfiguration |
SelectFormElementConfiguration.setCountSelectedText(String countSelectedText)
Sets the format for the text displayed when selectedTextFormat is count or count > #.
|
SelectFormElementConfiguration |
SelectFormElementConfiguration.setDeselectAllText(String deselectAllText)
The text on the button that deselects all options when actionsBox is enabled.
|
SelectFormElementConfiguration |
SelectFormElementConfiguration.setDropupAuto(boolean dropupAuto)
Checks to see which has more room, above or below.
|
SelectFormElementConfiguration |
SelectFormElementConfiguration.setHeader(String header)
Adds a header to the top of the menu; includes a close button by default.
|
SelectFormElementConfiguration |
SelectFormElementConfiguration.setHideDisabled(boolean hideDisabled)
Removes disabled options and optgroups from the menu.
|
SelectFormElementConfiguration |
SelectFormElementConfiguration.setIconBase(String iconBase)
Set the base to use a different icon font instead of Glyphicons.
|
SelectFormElementConfiguration |
SelectFormElementConfiguration.setLiveSearch(boolean liveSearch)
When set to true, adds a search box to the top of the selectpicker dropdown.
|
SelectFormElementConfiguration |
SelectFormElementConfiguration.setLiveSearchNormalize(boolean liveSearchNormalize)
Setting liveSearchNormalize to true allows for accent-insensitive searching.
|
SelectFormElementConfiguration |
SelectFormElementConfiguration.setLiveSearchStyle(SelectFormElementConfiguration.LiveSearchStyle liveSearchStyle)
When set to 'contains', searching will reveal options that contain the searched text.
|
SelectFormElementConfiguration |
SelectFormElementConfiguration.setMaxOptions(int maxOptions)
When set to an integer and in a multi-select, the number of selected options cannot exceed the given value.
|
SelectFormElementConfiguration |
SelectFormElementConfiguration.setMaxOptionsText(String maxOptionsText)
The text that is displayed when maxOptions is enabled and the maximum number of options for the given scenario have been selected.
|
SelectFormElementConfiguration |
SelectFormElementConfiguration.setMobile(boolean mobile)
When set to true, enables the device's native menu for select menus.
|
SelectFormElementConfiguration |
SelectFormElementConfiguration.setMultipleSeparator(String separator)
Set the character displayed in the button that separates selected options.
|
SelectFormElementConfiguration |
SelectFormElementConfiguration.setNoneSelectedText(String noneSelectedText)
The text that is displayed when a multiple select has no selected options.
|
SelectFormElementConfiguration |
SelectFormElementConfiguration.setSelectAllText(String selectAllText)
The text on the button that selects all options when actionsBox is enabled.
|
SelectFormElementConfiguration |
SelectFormElementConfiguration.setSelectedTextFormat(String selectedTextFormat)
Specifies how the selection is displayed with a multiple select.
|
SelectFormElementConfiguration |
SelectFormElementConfiguration.setSelectOnTab(boolean selectOnTab)
When set to true, treats the tab character like the enter or space characters within the selectpicker dropdown.
|
SelectFormElementConfiguration |
SelectFormElementConfiguration.setShowContent(boolean showContent)
When set to true, display custom HTML associated with selected option(s) in the button.
|
SelectFormElementConfiguration |
SelectFormElementConfiguration.setShowIcon(boolean showIcon)
When set to true, display icon(s) associated with selected option(s) in the button.
|
SelectFormElementConfiguration |
SelectFormElementConfiguration.setShowSubText(boolean showSubText)
When set to true, display subtext associated with a selected option in the button.
|
SelectFormElementConfiguration |
SelectFormElementConfiguration.setShowTick(boolean showTick)
Show checkmark on selected option (for items without multiple attribute).
|
SelectFormElementConfiguration |
SelectFormElementConfiguration.setSize(int size)
Set the items to show in the drop-down:
0: corresponds with 'auto'
x: number of items to show
-1: corresponds with
false
|
SelectFormElementConfiguration |
SelectFormElementConfiguration.setStyle(String style)
When set to a string, add the value to the button's style.
|
SelectFormElementConfiguration |
SelectFormElementConfiguration.setTickIcon(String tickIcon)
Set which icon to use to display as the "tick" next to selected options.
|
static SelectFormElementConfiguration |
SelectFormElementConfiguration.simple()
Create a new simple bootstrap-select configuration.
|
| Modifier and Type | Method and Description |
|---|---|
SelectFormElement |
SelectFormElement.setConfiguration(SelectFormElementConfiguration configuration)
Set a bootstrap-select configuration.
|
| Modifier and Type | Method and Description |
|---|---|
OptionsFormElementBuilder |
OptionsFormElementBuilder.select(SelectFormElementConfiguration configuration)
Will generate a boostrap-select box with the given configuration.
|
Copyright © 2020. All rights reserved.