diff --git a/src/docs/partials/namespace/errors.html b/src/docs/partials/namespace/errors.html index caf37db3f..ca649d508 100644 --- a/src/docs/partials/namespace/errors.html +++ b/src/docs/partials/namespace/errors.html @@ -49,8 +49,8 @@
An error when an option value is outside of the expected range. @@ -137,7 +137,7 @@
+-+ In general, when using these options, each date in the calendar is evaluated against all configuration options that have been set. +
+ Dates will only be enabled if they are valid for all criteria. If any one of the options would disable a date (or time), it will be disabled. + This means that if you use enabledDates, the dates in that array can still be disabled if some other setting such as minDate, maxDate, or daysOfWeekDisabled would disable those dates. +new tempusDominus.TempusDominus(document.getElementById('datetimepicker1'), { restrictions: { @@ -18,7 +24,6 @@ } )
- Allows the user to select only from the provided days. Setting this takes precedence - over + Allows the user to select only from the provided days. If combined with options.minDate, - options.maxDate configuration. + options.maxDate, + or daysOfWeekDisabled + only dates that are within the min and max date range, AND not in daysOfWeekDisabled, AND in the enabledDates range will be considered valid.
- Disallows the user to select any of the provided days. Setting this takes precedence - over - options.minDate, - options.maxDate configuration. + Prohibits the user from selecting any of the provided days. If combined with + options.minDate or + options.maxDate, + any date that is in this array or that is before the minDate, or after the maxDate, will be invalid.
- Throws numbersOutOfRage any value is + Throws numbersOutOfRange any value is not between 0-23
- Disallows the user to select any of the provided hours. + Prohibits the user from selecting any of the provided hours.
Accepts: array of numbers from 0-6
- 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.
+ Prohibits the user from selecting weekdays that exist in this array.
+ When combined with the
+ options.minDate, options.maxDate, and options.disabledDates configuration
+ settings, any date that is not valid for any of those options or this one will be prohibiited.
+ For a date to be allowed it must be valid based on all criteria.
+ If combined with options.enabled, only dates that are enabled AND a valid day of the week will be enabled.
- Throws numbersOutOfRage any value is not + Throws numbersOutOfRange any value is not between 0-6.