java.lang.Object
de.agilecoders.wicket.jquery.CombinableConfig
de.agilecoders.wicket.jquery.AbstractConfig
de.agilecoders.wicket.extensions.markup.html.bootstrap.form.tempusdominus.TempusDominusDisplayConfig
All Implemented Interfaces:
de.agilecoders.wicket.jquery.Config, Serializable, IClusterable

public class TempusDominusDisplayConfig extends de.agilecoders.wicket.jquery.AbstractConfig
Config of datetime picker plugin.
See Also:
  • Constructor Details

    • TempusDominusDisplayConfig

      public TempusDominusDisplayConfig()
      Construct config
  • Method Details

    • withClass

      public <T extends Temporal> TempusDominusDisplayConfig withClass(Class<T> clazz)
      Will add restrictions based on class Date/LocalDate/LocalTime/LocalDateTime etc.
      Parameters:
      clazz - Class of DateTime object to set restrictions
      Returns:
      current instance
    • withIcons

      Parameters:
      cfgUpdater - Consumer accepting TempusDominusIconConfig so it can be updated: Any icon library that expects icons to be used like <i class='fas fa-calendar'></i> will work, provided you include the correct styles and scripts needed.
      Returns:
      current instance
    • withSideBySide

      public TempusDominusDisplayConfig withSideBySide(boolean sideBySide)
      Parameters:
      sideBySide - Displays the date and time pickers side by side.
      Returns:
      current instance
    • withCalendarWeeks

      public TempusDominusDisplayConfig withCalendarWeeks(boolean calendarWeeks)
      Parameters:
      calendarWeeks - Displays an additional column with the calendar week for that week.
      Returns:
      current instance
    • withViewMode

      Parameters:
      view - The default view when the picker is displayed. Set to "years" for a date of birth picker.
      Returns:
      current instance
    • withToolbarPlacement

      Parameters:
      place - Changes the placement of the toolbar where the today, clear, component switch icon are located.
      Returns:
      current instance
    • withKeepOpen

      public TempusDominusDisplayConfig withKeepOpen(boolean keep)
      Parameters:
      keep - Keep the picker window open even after a date selection.
      Returns:
      current instance
    • withButton

      public TempusDominusDisplayConfig withButton(TempusDominusDisplayConfig.ButtonType type, boolean value)
      Will add given type to the Map
      Parameters:
      type - - Type of the button to set visibility
      value - - Visible or not
      Returns:
      current instance
    • withComponent

      Will add given component to the Map These options turns on or off the particular views. If option is false for date the user would only be able to select month and year for instance.
      Parameters:
      cmp - - view name
      on - - visible or not
      Returns:
      current instance
    • withInline

      public TempusDominusDisplayConfig withInline(boolean inline)
      Parameters:
      inline - Displays the picker in a inline div instead of a popup.
      Returns:
      current instance
    • withTheme

      Parameters:
      theme - Specifies which theme to use, light mode or dark mode. When set to auto, it will auto detect based on settings of the user's system.
      Returns:
      current instance