From 0a6f4ed1720559b51f2f847431628ed3e57c490d Mon Sep 17 00:00:00 2001 From: cboyce428 Date: Fri, 30 Jun 2023 08:23:57 +0100 Subject: [PATCH] Note about setOptions --- .../scheduling/calendar/disabled-dates.md | 11 +++++++++++ docs/api/javascript/ui/datepicker.md | 4 ++-- 2 files changed, 13 insertions(+), 2 deletions(-) diff --git a/docs-aspnet/html-helpers/scheduling/calendar/disabled-dates.md b/docs-aspnet/html-helpers/scheduling/calendar/disabled-dates.md index 7454b2393f3..5425138dee1 100644 --- a/docs-aspnet/html-helpers/scheduling/calendar/disabled-dates.md +++ b/docs-aspnet/html-helpers/scheduling/calendar/disabled-dates.md @@ -34,6 +34,17 @@ When you set an array, list the days that will be disabled by using the first le ``` {% endif %} +To apply a new filter or update an existing after initialisation use setOptions + +```HtmlHelper + +``` + ## Adding a Function When you add a function, determine its return value as `true` for the date that is disabled. diff --git a/docs/api/javascript/ui/datepicker.md b/docs/api/javascript/ui/datepicker.md index bb418a383f7..81fa88e7ea9 100644 --- a/docs/api/javascript/ui/datepicker.md +++ b/docs/api/javascript/ui/datepicker.md @@ -801,7 +801,7 @@ The following settings are available for the **start** value: ## Fields ### options `Object` -An object, which holds the options of the widget. The options object holds all available [DatPicker configuration fields](/api/javascript/ui/datepicker#configuration). +An object, which holds the options of the widget. The options object holds all available [DatePicker configuration fields](/api/javascript/ui/datepicker#configuration). #### Example - get options of the widget @@ -1017,7 +1017,7 @@ Opens the calendar. ### setOptions -Changes the initial DatePicker configuration by updating the options object. The options object holds all available [DatPicker configuration fields](/api/javascript/ui/datepicker#configuration). +Changes the initial DatePicker configuration by updating the options object. The options object holds all available [DatePicker configuration fields](/api/javascript/ui/datepicker#configuration). #### Parameters