java.lang.Object
org.wicketstuff.select2.Settings
- All Implemented Interfaces:
Serializable
Select2 settings. Refer to the Select2 documentation for what these options mean.
Does deviate from the default settings as documented on https://select2.org/configuration/options-api in the settings for width, closeOnSelect and escapeMarkup
- Author:
- igor
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classSome predefined width option values -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetAjax()getAjax(boolean createIfNotSet) booleanbooleangetData()booleangetId()booleangetQuery()booleanbooleangetTags()getTheme()String[]getWidth()booleansetAjax(AjaxSettings ajax) setAllowClear(boolean allowClear) setCloseOnSelect(boolean closeOnSelect) setContainerCss(String containerCss) setContainerCssClass(String containerCssClass) setCreateTag(String createTag) setDropdownAutoWidth(boolean dropdownAutoWidth) setDropdownCss(String dropdownCss) setDropdownCssClass(String dropdownCssClass) setDropdownParent(String dropdownParent) setEscapeMarkup(String escapeMarkup) setInitSelection(String initSelection) setLanguage(String language) setMatcher(String matcher) setMaximumSelectionLength(Integer maximumSelectionLength) setMinimumInputLength(Integer minimumInputLength) setMinimumResultsForSearch(Integer minimumResultsForSearch) setMountPath(String mountPath) setMultiple(boolean multiple) setPlaceholder(Object placeholder) setQueryParam(String queryParam) setSelectOnClose(boolean selectOnClose) setSeparator(String separator) setStateless(boolean stateless) setTags(boolean tags) setTemplateResult(String templateResult) setTemplateSelection(String templateSelection) setTheme(ISelect2Theme theme) setTokenizer(String tokenizer) setTokenSeparators(String[] tokenSeparators) toJson()
-
Field Details
-
DEFAULT_QUERY_PARAM
- See Also:
-
-
Constructor Details
-
Settings
public Settings()
-
-
Method Details
-
toJson
-
getMinimumInputLength
-
setMinimumInputLength
-
getMinimumResultsForSearch
-
setMinimumResultsForSearch
-
getPlaceholder
-
setPlaceholder
-
getAllowClear
public boolean getAllowClear() -
setAllowClear
-
getMultiple
public boolean getMultiple() -
setMultiple
-
getCloseOnSelect
public boolean getCloseOnSelect() -
setCloseOnSelect
-
getId
-
setId
-
getTemplateSelection
-
setTemplateSelection
-
getTemplateResult
-
setTemplateResult
-
getInitSelection
-
setInitSelection
-
getQuery
-
setQuery
-
getAjax
-
getAjax
-
setAjax
-
getData
-
setData
-
getTags
public boolean getTags() -
setTags
-
getCreateTag
-
setCreateTag
-
getMaximumSelectionLength
-
setMaximumSelectionLength
-
getMatcher
-
setMatcher
-
getTokenizer
-
setTokenizer
-
getSorter
-
setSorter
-
getEscapeMarkup
-
setEscapeMarkup
-
getWidth
-
setWidth
-
getTheme
-
setTheme
-
setTheme
-
getContainerCss
-
setContainerCss
-
getDropdownCss
-
setDropdownCss
-
getContainerCssClass
-
setContainerCssClass
-
getDropdownCssClass
-
setDropdownCssClass
-
getDropdownParent
-
setDropdownParent
-
getSeparator
-
setSeparator
-
getTokenSeparators
-
setTokenSeparators
-
getSelectOnClose
public boolean getSelectOnClose() -
setSelectOnClose
-
getDropdownAutoWidth
public boolean getDropdownAutoWidth() -
setDropdownAutoWidth
-
isStateless
public boolean isStateless() -
setStateless
-
getMountPath
-
setMountPath
-
getQueryParam
-
setQueryParam
-
getLanguage
-
setLanguage
-