Module wicket.bootstrap.extensions
Class BootstrapSelectConfig
java.lang.Object
de.agilecoders.wicket.jquery.CombinableConfig
de.agilecoders.wicket.jquery.AbstractConfig
de.agilecoders.wicket.extensions.markup.html.bootstrap.form.select.BootstrapSelectConfig
- All Implemented Interfaces:
de.agilecoders.wicket.jquery.Config,Serializable,IClusterable
public class BootstrapSelectConfig
extends de.agilecoders.wicket.jquery.AbstractConfig
Bootstrap select config
- Since:
- 02.11.14
- Author:
- Alexey Volkov
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanwithActionsBox(Boolean actionsBox) Shows or hides actions box with select all / deselect all buttons.withContainer(String container) When set to a string, appends the select to a specific element or selector, e.g., container: 'body' | '.main-body'.withCountSelectedText(String text) withDeselectAllText(String deselectAllText) Sets text for deselect all button in case actions box is turned on.withLiveSearch(Boolean liveSearch) withLiveSearchStyle(String liveSearchStyle) withMaxOptions(Integer maxOptions) withMaxOptionsText(String maxOptionsText, String groupText, String singleItem, String multiItem) withMultiple(Boolean multiple) withNoneSelectedText(String text) withNoResultText(String noResultText) withSelectAllText(String selectAllText) Sets text for select all button in case actions box is turned on.withSelectedTitle(String title) Methods inherited from class de.agilecoders.wicket.jquery.AbstractConfig
all, contains, get, getString, isEmpty, newKey, put, remove, toJsonString, wrapMethods inherited from class de.agilecoders.wicket.jquery.CombinableConfig
combine, withFallback
-
Constructor Details
-
BootstrapSelectConfig
public BootstrapSelectConfig()
-
-
Method Details
-
withLiveSearch
- Parameters:
liveSearch- is live search- Returns:
- current instance
-
withLiveSearchStyle
- Parameters:
liveSearchStyle- search style (contains or startsWith/begins)- Returns:
- current instance
-
withMultiple
- Parameters:
multiple- is multiple- Returns:
- current instance
-
withMaxOptions
- Parameters:
maxOptions- maxOptions- Returns:
- current instance
-
withMaxOptionsText
public BootstrapSelectConfig withMaxOptionsText(String maxOptionsText, String groupText, String singleItem, String multiItem) - Parameters:
maxOptionsText- maxOptionsTextgroupText- group textsingleItem- item titlemultiItem- items title- Returns:
- current instance
-
withNoResultText
- Parameters:
noResultText- no result text- Returns:
- current instance
-
withSelectedTitle
- Parameters:
title- title- Returns:
- current instance
-
withNoneSelectedText
- Parameters:
text- text- Returns:
- current instance
-
withCountSelectedText
- Parameters:
text- text- Returns:
- current instance
-
withActionsBox
Shows or hides actions box with select all / deselect all buttons. Applicable only forBootstrapMultiSelect.- Parameters:
actionsBox- is Actions box- Returns:
- current instance
-
withSelectAllText
Sets text for select all button in case actions box is turned on. Applicable only forBootstrapMultiSelect.- Parameters:
selectAllText- text displayed on selectAll button- Returns:
- current instance
- See Also:
-
withDeselectAllText
Sets text for deselect all button in case actions box is turned on. Applicable only forBootstrapMultiSelect.- Parameters:
deselectAllText- text displayed on deselectAll button- Returns:
- current instance
- See Also:
-
withContainer
When set to a string, appends the select to a specific element or selector, e.g., container: 'body' | '.main-body'.- Parameters:
container- the parent container- Returns:
- current instance
-
getSelectedTitle
- Returns:
- selected title
-
getLiveSearch
- Returns:
- is live search
-
getMultiple
- Returns:
- is multiple
-
getMaxOptions
- Returns:
- max options
-
getNoResultText
- Returns:
- no result text
-
getNoneSelectedText
- Returns:
- no selected text
-
getCountSelectedText
- Returns:
- count selected text
-
getActionsBox
public boolean getActionsBox()- Returns:
- actions box
-
getSelectAllText
- Returns:
- select all text
-
getDeselectAllText
- Returns:
- select all text
-
getContainer
-
getMaxOPtionsText
- Returns:
- max options text
-