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 Details

    • BootstrapSelectConfig

      public BootstrapSelectConfig()
  • Method Details

    • withLiveSearch

      public BootstrapSelectConfig withLiveSearch(Boolean liveSearch)
      Parameters:
      liveSearch - is live search
      Returns:
      current instance
    • withLiveSearchStyle

      public BootstrapSelectConfig withLiveSearchStyle(String liveSearchStyle)
      Parameters:
      liveSearchStyle - search style (contains or startsWith/begins)
      Returns:
      current instance
    • withMultiple

      public BootstrapSelectConfig withMultiple(Boolean multiple)
      Parameters:
      multiple - is multiple
      Returns:
      current instance
    • withMaxOptions

      public BootstrapSelectConfig withMaxOptions(Integer maxOptions)
      Parameters:
      maxOptions - maxOptions
      Returns:
      current instance
    • withMaxOptionsText

      public BootstrapSelectConfig withMaxOptionsText(String maxOptionsText, String groupText, String singleItem, String multiItem)
      Parameters:
      maxOptionsText - maxOptionsText
      groupText - group text
      singleItem - item title
      multiItem - items title
      Returns:
      current instance
    • withNoResultText

      public BootstrapSelectConfig withNoResultText(String noResultText)
      Parameters:
      noResultText - no result text
      Returns:
      current instance
    • withSelectedTitle

      public BootstrapSelectConfig withSelectedTitle(String title)
      Parameters:
      title - title
      Returns:
      current instance
    • withNoneSelectedText

      public BootstrapSelectConfig withNoneSelectedText(String text)
      Parameters:
      text - text
      Returns:
      current instance
    • withCountSelectedText

      public BootstrapSelectConfig withCountSelectedText(String text)
      Parameters:
      text - text
      Returns:
      current instance
    • withActionsBox

      public BootstrapSelectConfig withActionsBox(Boolean actionsBox)
      Shows or hides actions box with select all / deselect all buttons. Applicable only for BootstrapMultiSelect.
      Parameters:
      actionsBox - is Actions box
      Returns:
      current instance
    • withSelectAllText

      public BootstrapSelectConfig withSelectAllText(String selectAllText)
      Sets text for select all button in case actions box is turned on. Applicable only for BootstrapMultiSelect.
      Parameters:
      selectAllText - text displayed on selectAll button
      Returns:
      current instance
      See Also:
    • withDeselectAllText

      public BootstrapSelectConfig withDeselectAllText(String deselectAllText)
      Sets text for deselect all button in case actions box is turned on. Applicable only for BootstrapMultiSelect.
      Parameters:
      deselectAllText - text displayed on deselectAll button
      Returns:
      current instance
      See Also:
    • withContainer

      public BootstrapSelectConfig withContainer(String container)
      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

      public String getSelectedTitle()
      Returns:
      selected title
    • getLiveSearch

      public Boolean getLiveSearch()
      Returns:
      is live search
    • getMultiple

      public Boolean getMultiple()
      Returns:
      is multiple
    • getMaxOptions

      public Integer getMaxOptions()
      Returns:
      max options
    • getNoResultText

      public String getNoResultText()
      Returns:
      no result text
    • getNoneSelectedText

      public String getNoneSelectedText()
      Returns:
      no selected text
    • getCountSelectedText

      public String getCountSelectedText()
      Returns:
      count selected text
    • getActionsBox

      public boolean getActionsBox()
      Returns:
      actions box
    • getSelectAllText

      public String getSelectAllText()
      Returns:
      select all text
    • getDeselectAllText

      public String getDeselectAllText()
      Returns:
      select all text
    • getContainer

      public String getContainer()
    • getMaxOPtionsText

      public String getMaxOPtionsText()
      Returns:
      max options text