You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/content/components/calendar.md
+15-15Lines changed: 15 additions & 15 deletions
Original file line number
Diff line number
Diff line change
@@ -17,7 +17,7 @@ Explore the Bootstrap 5 Calendar component's basic usage through sample code sni
17
17
18
18
Select specific days using the Bootstrap Calendar component. The example below shows basic usage.
19
19
20
-
{{< example >}}
20
+
{{< example stackblitz_pro="true" >}}
21
21
<divclass="d-flex justify-content-center">
22
22
<div
23
23
class="border rounded"
@@ -32,7 +32,7 @@ Select specific days using the Bootstrap Calendar component. The example below s
32
32
33
33
Set the `data-coreui-selection-type` to `week` to enable selection of entire week. You can also use `data-coreui-show-week-number="true"` to show week numbers.
34
34
35
-
{{< example >}}
35
+
{{< example stackblitz_pro="true" >}}
36
36
<divclass="d-flex justify-content-center">
37
37
<div
38
38
class="border rounded"
@@ -49,7 +49,7 @@ Set the `data-coreui-selection-type` to `week` to enable selection of entire wee
49
49
50
50
Set the `data-coreui-selection-type` to `month` to enable selection of entire months.
51
51
52
-
{{< example >}}
52
+
{{< example stackblitz_pro="true" >}}
53
53
<divclass="d-flex justify-content-center">
54
54
<div
55
55
class="border rounded"
@@ -65,7 +65,7 @@ Set the `data-coreui-selection-type` to `month` to enable selection of entire mo
65
65
66
66
Set the `data-coreui-selection-type` to `year` to enable years range selection.
67
67
68
-
{{< example >}}
68
+
{{< example stackblitz_pro="true" >}}
69
69
<divclass="d-flex justify-content-center">
70
70
<div
71
71
class="border rounded"
@@ -81,7 +81,7 @@ Set the `data-coreui-selection-type` to `year` to enable years range selection.
81
81
82
82
Display multiple calendar panels side by side by setting the `data-coreui-calendars` attribute. This can be useful for selecting ranges or comparing dates across different months.
83
83
84
-
{{< example >}}
84
+
{{< example stackblitz_pro="true" >}}
85
85
<divclass="d-flex justify-content-center">
86
86
<div
87
87
class="border rounded"
@@ -96,7 +96,7 @@ Display multiple calendar panels side by side by setting the `data-coreui-calend
96
96
97
97
Enable range selection by adding `data-coreui-range="true"` to allow users to pick a start and end date. This example demonstrates how to configure the Bootstrap 5 Calendar component to handle date ranges.
98
98
99
-
{{< example >}}
99
+
{{< example stackblitz_pro="true" >}}
100
100
<divclass="d-flex justify-content-center">
101
101
<div
102
102
class="border rounded"
@@ -120,7 +120,7 @@ The Bootstrap Calendar component includes functionality to disable specific date
120
120
121
121
To disable certain dates, you can provide them in an array. For date ranges, use nested arrays, where each inner array indicates a start date and an end date for that range:
122
122
123
-
{{< example >}}
123
+
{{< example stackblitz_pro="true" stackblitz_add_js="true">}}
@@ -171,7 +171,7 @@ The CoreUI Bootstrap Calendar allows users to display dates in non-English local
171
171
172
172
By default, the Calendar component uses the browser's default locale. However, you can easily configure it to use a different locale supported by the JavaScript Internationalization API. This feature helps create inclusive and accessible applications for a diverse audience.
@@ -33,7 +33,7 @@ The following examples demonstrating how to pick dates using the Bootstrap Date
33
33
34
34
In addition to supporting date selection, our Bootstrap Date Picker component also includes a Time Picker feature, allowing users to select a specific time of day. Bootstrap Time Picker can be enabled by adding `data-coreui-timepicker="true"`.
@@ -48,7 +48,7 @@ In addition to supporting date selection, our Bootstrap Date Picker component al
48
48
49
49
To add a footer, use `data-coreui-footer="true"`. The footer can display extra information or actions related to the selected date, such as buttons for "Today" or "Clear".
@@ -63,7 +63,7 @@ To add a footer, use `data-coreui-footer="true"`. The footer can display extra i
63
63
64
64
If you want to select the week number, add the `data-coreui-selection-type="week"` attribute. You can also use `data-coreui-show-week-number="true"` to show week numbers.
65
65
66
-
{{< example >}}
66
+
{{< example stackblitz_pro="true" >}}
67
67
<divclass="row">
68
68
<divclass="col-sm-6 col-lg-5 mb-3 mb-sm-0">
69
69
<div
@@ -89,7 +89,7 @@ If you want to select the week number, add the `data-coreui-selection-type="week
89
89
90
90
Selecting whole month by adding the `data-coreui-selection-type="month"` attribute.
91
91
92
-
{{< example >}}
92
+
{{< example stackblitz_pro="true" >}}
93
93
<divclass="row">
94
94
<divclass="col-sm-6 col-lg-5 mb-3 mb-sm-0">
95
95
<div
@@ -113,7 +113,7 @@ Selecting whole month by adding the `data-coreui-selection-type="month"` attribu
113
113
114
114
Add the `data-coreui-selection-type="year"` attribute to allow pick years.
115
115
116
-
{{< example >}}
116
+
{{< example stackblitz_pro="true" >}}
117
117
<divclass="row">
118
118
<divclass="col-sm-6 col-lg-5 mb-3 mb-sm-0">
119
119
<div
@@ -137,7 +137,7 @@ Add the `data-coreui-selection-type="year"` attribute to allow pick years.
137
137
138
138
Set heights using `data-coreui-size` attribute like `data-coreui-size="lg"` and `data-coreui-size="sm"`.
@@ -178,7 +178,7 @@ Add the `data-coreui-input-read-only="true"` boolean attribute to prevent modifi
178
178
179
179
The CoreUI Bootstrap DatePicker component allows you to disable certain dates, such as weekends or holidays. You can accomplish this by passing the `disabledDates` option to the component, which determines which dates should be disabled based on custom logic.
180
180
181
-
{{< example >}}
181
+
{{< example stackblitz_pro="true" stackblitz_add_js="true">}}
182
182
<divclass="row">
183
183
<divclass="col-lg-5">
184
184
<div id="myDatePickerDisabledDates"></div>
@@ -192,7 +192,7 @@ The CoreUI Bootstrap DatePicker component allows you to disable certain dates, s
192
192
193
193
You can disable weekends by passing a function to the `disabledDates` option. Here's how to do it:
194
194
195
-
{{< example >}}
195
+
{{< example stackblitz_pro="true" stackblitz_add_js="true">}}
196
196
<divclass="row">
197
197
<divclass="col-lg-5">
198
198
<div id="myDatePickerDisabledDates2"></div>
@@ -210,7 +210,7 @@ CoreUI Date Picker allows users to display dates and times in a non-English loca
210
210
211
211
By default, the DatePicker component uses the default browser locale, but it can be easily configured to use a different locale supported by the JavaScript Internationalization API. To set the locale, you can pass the desired language code as a prop to the DatePicker component. This feature enables the creation of more inclusive and accessible applications that cater to a diverse audience.
212
212
213
-
{{< example >}}
213
+
{{< example stackblitz_pro="true" >}}
214
214
<divclass="row">
215
215
<divclass="col-lg-5">
216
216
<div data-coreui-toggle="date-picker"></div>
@@ -222,7 +222,7 @@ By default, the DatePicker component uses the default browser locale, but it can
222
222
223
223
Here is an example of a simple Bootstrap Date Picker with Chinese locales.
@@ -287,7 +287,7 @@ The provided code demonstrates how to use the `inputDateFormat` and `inputDatePa
287
287
The `inputDateFormat` property formats the date into a custom string, while the `inputDateParse` property parses a custom string into a Date object. The code showcases the date range in different formats based on locale, such as 'MMMM DD, YYYY' and 'YYYY MMMM DD', and accommodates different locales, like 'en-US' and 'es-ES'.
288
288
289
289
290
-
{{< example >}}
290
+
{{< example stackblitz_pro="true" stackblitz_dayjs="true" stackblitz_add_js="true">}}
291
291
<divclass="row">
292
292
<divclass="col-lg-5">
293
293
<div id="myDatePickerCustomFormats1"></div>
@@ -305,7 +305,7 @@ The `inputDateFormat` property formats the date into a custom string, while the
305
305
306
306
To use localized dates, we need to additionally add locale files, in this case, Spanish:
307
307
308
-
{{< example >}}
308
+
{{< example stackblitz_pro="true" stackblitz_dayjs="true" stackblitz_add_js="true">}}
0 commit comments