Module wicket.bootstrap.extensions
Class TempusDominusRestrictionsConfig
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionwithDayOfWeekDisabled(int day) Adds day of week to disabled listwithDisabledDate(Date date) Adds the dates to disabled list<T extends Temporal>
TempusDominusRestrictionsConfigwithDisabledDate(T date) Adds the dates to disabled listwithDisabledHour(int hour) Adds hour to disabled listwithDisabledTimeInterval(Date from, Date to) Disables time selection between the given DateTimes.<T extends Temporal>
TempusDominusRestrictionsConfigwithDisabledTimeInterval(T from, T to) Disables time selection between the given DateTimes.withEnabledDate(Date date) Adds the dates to enabled list<T extends Temporal>
TempusDominusRestrictionsConfigwithEnabledDate(T date) Adds the dates to enabled listwithEnabledHour(int hour) Adds hour to enabled listwithMaxDate(Date date) <T extends Temporal>
TempusDominusRestrictionsConfigwithMaxDate(T date) withMinDate(Date date) <T extends Temporal>
TempusDominusRestrictionsConfigwithMinDate(T date) 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
-
TempusDominusRestrictionsConfig
public TempusDominusRestrictionsConfig()
-
-
Method Details
-
withMinDate
- Parameters:
date- Prevents the user from selecting a date/time before this value.- Returns:
- current instance
-
withMinDate
- Parameters:
date- Prevents the user from selecting a date/time before this value.- Returns:
- current instance
-
withMaxDate
- Parameters:
date- Prevents the user from selecting a date/time after this value.- Returns:
- current instance
-
withMaxDate
- Parameters:
date- Prevents the user from selecting a date/time after this value.- Returns:
- current instance
-
withDisabledDate
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
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
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
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
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
Disables time selection between the given DateTimes.- Parameters:
from- start of intervalto- end of interval- Returns:
- current instance
-
withDisabledTimeInterval
Disables time selection between the given DateTimes.- Parameters:
from- start of intervalto- end of interval- Returns:
- current instance
-
withEnabledHour
Adds hour to enabled list- Parameters:
hour- Allows the user to select only from the provided hours.- Returns:
- current instance
-
withDisabledHour
Adds hour to disabled list- Parameters:
hour- Disallows the user to select any of the provided hours.- Returns:
- current instance
-