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

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

    • TempusDominusRestrictionsConfig

      public TempusDominusRestrictionsConfig()
  • Method Details

    • withMinDate

      public <T extends Temporal> TempusDominusRestrictionsConfig withMinDate(T date)
      Parameters:
      date - Prevents the user from selecting a date/time before this value.
      Returns:
      current instance
    • withMinDate

      public TempusDominusRestrictionsConfig withMinDate(Date date)
      Parameters:
      date - Prevents the user from selecting a date/time before this value.
      Returns:
      current instance
    • withMaxDate

      public <T extends Temporal> TempusDominusRestrictionsConfig withMaxDate(T date)
      Parameters:
      date - Prevents the user from selecting a date/time after this value.
      Returns:
      current instance
    • withMaxDate

      public TempusDominusRestrictionsConfig withMaxDate(Date date)
      Parameters:
      date - Prevents the user from selecting a date/time after this value.
      Returns:
      current instance
    • withDisabledDate

      public <T extends Temporal> TempusDominusRestrictionsConfig withDisabledDate(T date)
      Adds the dates to disabled list
      Parameters:
      date - Disallows the user to select any of the provided days. Setting this takes precedence over options.minDate, options.maxDate configuration.
      Returns:
      current instance
    • withDisabledDate

      public TempusDominusRestrictionsConfig withDisabledDate(Date date)
      Adds the dates to disabled list
      Parameters:
      date - Disallows the user to select any of the provided days. Setting this takes precedence over options.minDate, options.maxDate configuration.
      Returns:
      current instance
    • withEnabledDate

      public <T extends Temporal> TempusDominusRestrictionsConfig withEnabledDate(T date)
      Adds the dates to enabled list
      Parameters:
      date - Allows the user to select only from the provided days. Setting this takes precedence over options.minDate, options.maxDate configuration.
      Returns:
      current instance
    • withEnabledDate

      public TempusDominusRestrictionsConfig withEnabledDate(Date date)
      Adds the dates to enabled list
      Parameters:
      date - Allows the user to select only from the provided days. Setting this takes precedence over options.minDate, options.maxDate configuration.
      Returns:
      current instance
    • withDayOfWeekDisabled

      public TempusDominusRestrictionsConfig withDayOfWeekDisabled(int day)
      Adds day of week to disabled list
      Parameters:
      day - Disallow the user to select weekdays that exist in this array. This has lower priority over the options.minDate, options.maxDate, options.disabledDates and options.enabledDates configuration settings.
      Returns:
      current instance
    • withDisabledTimeInterval

      public <T extends Temporal> TempusDominusRestrictionsConfig withDisabledTimeInterval(T from, T to)
      Disables time selection between the given DateTimes.
      Parameters:
      from - start of interval
      to - end of interval
      Returns:
      current instance
    • withDisabledTimeInterval

      public TempusDominusRestrictionsConfig withDisabledTimeInterval(Date from, Date to)
      Disables time selection between the given DateTimes.
      Parameters:
      from - start of interval
      to - end of interval
      Returns:
      current instance
    • withEnabledHour

      public TempusDominusRestrictionsConfig withEnabledHour(int hour)
      Adds hour to enabled list
      Parameters:
      hour - Allows the user to select only from the provided hours.
      Returns:
      current instance
    • withDisabledHour

      public TempusDominusRestrictionsConfig withDisabledHour(int hour)
      Adds hour to disabled list
      Parameters:
      hour - Disallows the user to select any of the provided hours.
      Returns:
      current instance