@progress/kendo-react-dateinputs 10.2.0-develop.6 → 10.2.0-develop.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cdn/js/kendo-react-dateinputs.js +1 -1
- package/index.d.mts +251 -6
- package/index.d.ts +251 -6
- package/package-metadata.js +1 -1
- package/package-metadata.mjs +2 -2
- package/package.json +8 -8
package/index.d.mts
CHANGED
|
@@ -246,109 +246,240 @@ export declare const CalendarPropsContext: React_2.Context<(p: CalendarProps<any
|
|
|
246
246
|
export declare interface CalendarSettings {
|
|
247
247
|
/**
|
|
248
248
|
* Defines the bottommost view to which the user can navigate.
|
|
249
|
+
* ([see example]({% slug navigation_calendar %}#toc-bottom-view)).
|
|
250
|
+
*
|
|
251
|
+
** @example
|
|
252
|
+
* ```jsx
|
|
253
|
+
* <Calendar bottomView="month" />
|
|
254
|
+
* ```
|
|
249
255
|
*/
|
|
250
256
|
bottomView?: ActiveView;
|
|
251
257
|
/**
|
|
252
258
|
* Sets the `className` of the Calendar.
|
|
259
|
+
*
|
|
260
|
+
** @example
|
|
261
|
+
* ```jsx
|
|
262
|
+
* <Calendar className="custom-class" />
|
|
263
|
+
* ```
|
|
253
264
|
*/
|
|
254
265
|
className?: string;
|
|
255
266
|
/**
|
|
256
267
|
* Sets the default active view of the Calendar.
|
|
257
268
|
* If not set, the Calendar will display the month view.
|
|
269
|
+
* ([see example]({% slug views_calendar %}#toc-default-active-view)).
|
|
270
|
+
*
|
|
271
|
+
** @example
|
|
272
|
+
* ```jsx
|
|
273
|
+
* <Calendar defaultActiveView="year" />
|
|
274
|
+
* ```
|
|
258
275
|
*/
|
|
259
276
|
defaultActiveView?: ActiveView;
|
|
260
277
|
/**
|
|
261
278
|
* Determines whether the Calendar is disabled.
|
|
279
|
+
* ([see example]({% slug disabled_calendar %})).
|
|
280
|
+
*
|
|
281
|
+
** @example
|
|
282
|
+
* ```jsx
|
|
283
|
+
* <Calendar disabled={true} />
|
|
284
|
+
* ```
|
|
262
285
|
*/
|
|
263
286
|
disabled?: boolean;
|
|
264
287
|
/**
|
|
265
288
|
* Sets the initial focused date of the Calendar.
|
|
289
|
+
* ([see example]({% slug focuseddate_calendar %})).
|
|
290
|
+
*
|
|
291
|
+
** @example
|
|
292
|
+
* ```jsx
|
|
293
|
+
* <Calendar focusedDate={new Date()} />
|
|
294
|
+
* ```
|
|
266
295
|
*/
|
|
267
296
|
focusedDate?: Date;
|
|
268
297
|
/**
|
|
269
298
|
* Sets the `id` of the Calendar.
|
|
299
|
+
*
|
|
300
|
+
** @example
|
|
301
|
+
* ```jsx
|
|
302
|
+
* <Calendar id="calendar-id" />
|
|
303
|
+
* ```
|
|
270
304
|
*/
|
|
271
305
|
id?: string;
|
|
272
306
|
/**
|
|
273
307
|
* Identifies the element(s) which will describe the component, similar to [HTML aria-describedby attribute](https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/ARIA_Techniques/Using_the_aria-describedby_attribute).
|
|
274
|
-
* For example these elements could contain error or hint
|
|
308
|
+
* For example, these elements could contain error or hint messages.
|
|
309
|
+
*
|
|
310
|
+
** @example
|
|
311
|
+
* ```jsx
|
|
312
|
+
* <Calendar ariaDescribedBy="description-id" />
|
|
313
|
+
* ```
|
|
275
314
|
*/
|
|
276
315
|
ariaDescribedBy?: string;
|
|
277
316
|
/**
|
|
278
317
|
* Identifies the element(s) which will label the component.
|
|
318
|
+
*
|
|
319
|
+
** @example
|
|
320
|
+
* ```jsx
|
|
321
|
+
* <Calendar ariaLabelledBy="label-id" />
|
|
322
|
+
* ```
|
|
279
323
|
*/
|
|
280
324
|
ariaLabelledBy?: string;
|
|
281
325
|
/**
|
|
282
326
|
* Sets the maximum allowed date of the Calendar. Defaults to `2099-12-31`.
|
|
327
|
+
* ([see example]({% slug dateranges_calendar %}#toc-max-date)).
|
|
328
|
+
*
|
|
329
|
+
** @example
|
|
330
|
+
* ```jsx
|
|
331
|
+
* <Calendar max={new Date(2099, 11, 31)} />
|
|
332
|
+
* ```
|
|
283
333
|
*/
|
|
284
334
|
max?: Date;
|
|
285
335
|
/**
|
|
286
336
|
* Sets the minimum allowed date of the Calendar. Defaults to `1900-1-1`.
|
|
337
|
+
* ([see example]({% slug dateranges_calendar %}#toc-min-date)).
|
|
338
|
+
*
|
|
339
|
+
** @example
|
|
340
|
+
* ```jsx
|
|
341
|
+
* <Calendar min={new Date(1900, 0, 1)} />
|
|
342
|
+
* ```
|
|
287
343
|
*/
|
|
288
344
|
min?: Date;
|
|
289
345
|
/**
|
|
290
346
|
* Determines if the navigation sidebar will be displayed.
|
|
347
|
+
* ([see example]({% slug navigation_calendar %}#toc-sidebar)).
|
|
348
|
+
*
|
|
349
|
+
** @example
|
|
350
|
+
* ```jsx
|
|
351
|
+
* <Calendar navigation={true} />
|
|
352
|
+
* ```
|
|
291
353
|
*/
|
|
292
354
|
navigation?: boolean;
|
|
293
355
|
/**
|
|
294
356
|
* **Deprecated**
|
|
295
357
|
*
|
|
296
358
|
* Toggles the smooth scroll animation on navigation item click. By default, the animation is enabled in React 17.
|
|
359
|
+
*
|
|
360
|
+
** @example
|
|
361
|
+
* ```jsx
|
|
362
|
+
* <Calendar smoothScroll={false} />
|
|
363
|
+
* ```
|
|
297
364
|
*/
|
|
298
365
|
smoothScroll?: boolean;
|
|
299
366
|
/**
|
|
300
367
|
* Fires each time the Calendar is blurred.
|
|
368
|
+
*
|
|
369
|
+
** @example
|
|
370
|
+
* ```jsx
|
|
371
|
+
* <Calendar onBlur={(event) => console.log('Blur event:', event)} />
|
|
372
|
+
* ```
|
|
301
373
|
*/
|
|
302
374
|
onBlur?: (event: React.FocusEvent<any>) => void;
|
|
303
375
|
/**
|
|
304
376
|
* Fires each time the Calendar is focused.
|
|
377
|
+
*
|
|
378
|
+
** @example
|
|
379
|
+
* ```jsx
|
|
380
|
+
* <Calendar onFocus={(event) => console.log('Focus event:', event)} />
|
|
381
|
+
* ```
|
|
305
382
|
*/
|
|
306
383
|
onFocus?: (event: React.FocusEvent<any>) => void;
|
|
307
384
|
/**
|
|
308
385
|
* Sets the `tabIndex` property of the Calendar.
|
|
386
|
+
*
|
|
387
|
+
** @example
|
|
388
|
+
* ```jsx
|
|
389
|
+
* <Calendar tabIndex={0} />
|
|
390
|
+
* ```
|
|
309
391
|
*/
|
|
310
392
|
tabIndex?: number;
|
|
311
393
|
/**
|
|
312
394
|
* Defines the topmost view to which the user can navigate.
|
|
395
|
+
* ([see example]({% slug navigation_calendar %}#toc-top-view)).
|
|
396
|
+
*
|
|
397
|
+
** @example
|
|
398
|
+
* ```jsx
|
|
399
|
+
* <Calendar topView="decade" />
|
|
400
|
+
* ```
|
|
313
401
|
*/
|
|
314
402
|
topView?: ActiveView;
|
|
315
403
|
/**
|
|
316
404
|
* Specifies the possible format options for the displayed Calendar week days' names.
|
|
405
|
+
* ([see example]({% slug weeknames_calendar %})).
|
|
317
406
|
*
|
|
318
407
|
* @default short
|
|
408
|
+
*
|
|
409
|
+
** @example
|
|
410
|
+
* ```jsx
|
|
411
|
+
* <Calendar weekDaysFormat="short" />
|
|
412
|
+
* ```
|
|
319
413
|
*/
|
|
320
414
|
weekDaysFormat?: WeekDaysFormat;
|
|
321
415
|
/**
|
|
322
416
|
* Determines if the week number column will be displayed.
|
|
417
|
+
* ([see example]({% slug weeknumbers_calendar %})).
|
|
418
|
+
*
|
|
419
|
+
** @example
|
|
420
|
+
* ```jsx
|
|
421
|
+
* <Calendar weekNumber={true} />
|
|
422
|
+
* ```
|
|
323
423
|
*/
|
|
324
424
|
weekNumber?: boolean;
|
|
325
425
|
/**
|
|
326
426
|
* Displays the days that fall out of the current month.
|
|
427
|
+
* ([see example]({% slug othermonthdays_calendar %})).
|
|
428
|
+
*
|
|
429
|
+
** @example
|
|
430
|
+
* ```jsx
|
|
431
|
+
* <Calendar showOtherMonthDays={true} />
|
|
432
|
+
* ```
|
|
327
433
|
*/
|
|
328
434
|
showOtherMonthDays?: boolean;
|
|
329
435
|
/**
|
|
330
|
-
* Enables the customization or the override of the default Calendar cell
|
|
436
|
+
* Enables the customization or the override of the default Calendar cell.
|
|
331
437
|
* ([see example]({% slug custom_rendering_calendar %}#toc-cells-inside-the-view)).
|
|
438
|
+
*
|
|
439
|
+
** @example
|
|
440
|
+
* ```jsx
|
|
441
|
+
* <Calendar cell={CustomCell} />
|
|
442
|
+
* ```
|
|
332
443
|
*/
|
|
333
444
|
cell?: React.ComponentType<CalendarCellProps>;
|
|
334
445
|
/**
|
|
335
|
-
* Enables the customization or the override of the default week-column cell in the Calendar
|
|
446
|
+
* Enables the customization or the override of the default week-column cell in the Calendar.
|
|
336
447
|
* ([see example]({% slug custom_rendering_calendar %}#toc-cells-inside-the-week-column)).
|
|
448
|
+
*
|
|
449
|
+
** @example
|
|
450
|
+
* ```jsx
|
|
451
|
+
* <Calendar weekCell={CustomWeekCell} />
|
|
452
|
+
* ```
|
|
337
453
|
*/
|
|
338
454
|
weekCell?: React.ComponentType<CalendarWeekCellProps>;
|
|
339
455
|
/**
|
|
340
|
-
* Enables the customization or the override of the default header title in the Calendar
|
|
456
|
+
* Enables the customization or the override of the default header title in the Calendar.
|
|
341
457
|
* ([see example]({% slug custom_rendering_calendar %}#toc-titles-of-current-views)).
|
|
458
|
+
*
|
|
459
|
+
** @example
|
|
460
|
+
* ```jsx
|
|
461
|
+
* <Calendar headerTitle={CustomHeaderTitle} />
|
|
462
|
+
* ```
|
|
342
463
|
*/
|
|
343
464
|
headerTitle?: React.ComponentType<CalendarHeaderTitleProps>;
|
|
344
465
|
/**
|
|
345
|
-
* Enables the customization or the override of the default header
|
|
466
|
+
* Enables the customization or the override of the default header in the Calendar.
|
|
346
467
|
* ([see example]({% slug custom_rendering_calendar %}#toc-titles-of-current-views)).
|
|
468
|
+
*
|
|
469
|
+
** @example
|
|
470
|
+
* ```jsx
|
|
471
|
+
* <Calendar header={CustomHeader} />
|
|
472
|
+
* ```
|
|
347
473
|
*/
|
|
348
474
|
header?: React.ComponentType<CalendarHeaderProps>;
|
|
349
475
|
/**
|
|
350
|
-
* Enables the customization or the override of the default navigation item in the Calendar
|
|
476
|
+
* Enables the customization or the override of the default navigation item in the Calendar.
|
|
351
477
|
* ([see example]({% slug custom_rendering_calendar %}#toc-items-in-the-side-navigation)).
|
|
478
|
+
*
|
|
479
|
+
** @example
|
|
480
|
+
* ```jsx
|
|
481
|
+
* <Calendar navigationItem={CustomNavigationItem} />
|
|
482
|
+
* ```
|
|
352
483
|
*/
|
|
353
484
|
navigationItem?: React.ComponentType<CalendarNavigationItemProps>;
|
|
354
485
|
}
|
|
@@ -770,6 +901,12 @@ declare interface DateInputOptions {
|
|
|
770
901
|
* [placeholders]({% slug placeholders_dateinput %}).
|
|
771
902
|
*/
|
|
772
903
|
placeholder?: string | null;
|
|
904
|
+
/**
|
|
905
|
+
* Example usage of the `placeholder` property:
|
|
906
|
+
* ```jsx
|
|
907
|
+
* <DateInput placeholder="Enter a date" />
|
|
908
|
+
* ```
|
|
909
|
+
*/
|
|
773
910
|
/**
|
|
774
911
|
* Determines wether should select the previous segment on backspace.
|
|
775
912
|
*
|
|
@@ -1350,82 +1487,158 @@ export declare interface DatePickerSettings {
|
|
|
1350
1487
|
/**
|
|
1351
1488
|
* Enables the customization or the override of the default Toggle button which is rendered by the DatePicker
|
|
1352
1489
|
* ([see example]({% slug custom_rendering_datepicker %}#toc-customizing-the-toggle-button)).
|
|
1490
|
+
* Example usage of the `toggleButton` property:
|
|
1491
|
+
* ```jsx
|
|
1492
|
+
* <DatePicker toggleButton={CustomToggleButton} />
|
|
1493
|
+
* ```
|
|
1353
1494
|
*/
|
|
1354
1495
|
toggleButton?: React.ComponentType<ToggleButtonProps>;
|
|
1355
1496
|
/**
|
|
1356
1497
|
* Enables the customization or the override of the default Calendar which is rendered by the DatePicker
|
|
1357
1498
|
* ([see example]({% slug custom_rendering_datepicker %}#toc-customizing-the-calendar)).
|
|
1499
|
+
* Example usage of the `calendar` property:
|
|
1500
|
+
* ```jsx
|
|
1501
|
+
* <DatePicker calendar={CustomCalendar} />
|
|
1502
|
+
* ```
|
|
1358
1503
|
*/
|
|
1359
1504
|
calendar?: React.ComponentType<CalendarProps<any>> | React.ComponentType<MultiViewCalendarProps<any>>;
|
|
1360
1505
|
/**
|
|
1361
1506
|
* Enables the customization or the override of the default Popup which is rendered by the DatePicker
|
|
1362
1507
|
* ([see example]({% slug custom_rendering_datepicker %}#toc-customizing-the-popup)).
|
|
1508
|
+
* Example usage of the `popup` property:
|
|
1509
|
+
* ```jsx
|
|
1510
|
+
* <DatePicker popup={CustomPopup} />
|
|
1511
|
+
* ```
|
|
1363
1512
|
*/
|
|
1364
1513
|
popup?: React.ComponentType<PopupProps>;
|
|
1365
1514
|
/**
|
|
1366
1515
|
* Enables the customization or the override of the default DateInput which is rendered by the DatePicker
|
|
1367
1516
|
* ([see example]({% slug custom_rendering_datepicker %}#toc-customizing-the-dateinput)).
|
|
1517
|
+
* Example usage of the `dateInput` property:
|
|
1518
|
+
* ```jsx
|
|
1519
|
+
* <DatePicker dateInput={CustomDateInput} />
|
|
1520
|
+
* ```
|
|
1368
1521
|
*/
|
|
1369
1522
|
dateInput?: React.ComponentType<DateInputProps<any>>;
|
|
1370
1523
|
/**
|
|
1371
1524
|
* Sets the `className` of the DatePicker.
|
|
1525
|
+
* Example usage of the `className` property:
|
|
1526
|
+
* ```jsx
|
|
1527
|
+
* <DatePicker className="custom-class" />
|
|
1528
|
+
* ```
|
|
1372
1529
|
*/
|
|
1373
1530
|
className?: string;
|
|
1374
1531
|
/**
|
|
1375
1532
|
* Sets the default state of the DatePicker upon render ([see example]({% slug default_value_datepicker %})).
|
|
1533
|
+
* Example usage of the `defaultShow` property:
|
|
1534
|
+
* ```jsx
|
|
1535
|
+
* <DatePicker defaultShow={true} />
|
|
1536
|
+
* ```
|
|
1376
1537
|
*/
|
|
1377
1538
|
defaultShow?: boolean;
|
|
1378
1539
|
/**
|
|
1379
1540
|
* Determines whether the DatePicker is disabled ([see example]({% slug disabled_datepicker %})).
|
|
1541
|
+
* Example usage of the `disabled` property:
|
|
1542
|
+
* ```jsx
|
|
1543
|
+
* <DatePicker disabled={true} />
|
|
1544
|
+
* ```
|
|
1380
1545
|
*/
|
|
1381
1546
|
disabled?: boolean;
|
|
1382
1547
|
/**
|
|
1383
1548
|
* Specifies the focused date of the DatePicker ([see example]({% slug dates_datepicker %})).
|
|
1549
|
+
* Example usage of the `focusedDate` property:
|
|
1550
|
+
* ```jsx
|
|
1551
|
+
* <DatePicker focusedDate={new Date()} />
|
|
1552
|
+
* ```
|
|
1384
1553
|
*/
|
|
1385
1554
|
focusedDate?: Date;
|
|
1386
1555
|
/**
|
|
1387
1556
|
* Specifies the date format that is used to display the input value ([see example]({% slug formats_datepicker %})).
|
|
1557
|
+
* Example usage of the `format` property:
|
|
1558
|
+
* ```jsx
|
|
1559
|
+
* <DatePicker format="MM/dd/yyyy" />
|
|
1560
|
+
* ```
|
|
1388
1561
|
*/
|
|
1389
1562
|
format?: string | DateFormatOptions;
|
|
1390
1563
|
/**
|
|
1391
1564
|
* Defines the descriptions of the format sections in the input field ([more information and examples]({% slug placeholders_datepicker %})).
|
|
1565
|
+
* Example usage of the `formatPlaceholder` property:
|
|
1566
|
+
* ```jsx
|
|
1567
|
+
* <DatePicker formatPlaceholder="Enter date" />
|
|
1568
|
+
* ```
|
|
1392
1569
|
*/
|
|
1393
1570
|
formatPlaceholder?: DateInputFormatPlaceholder;
|
|
1394
1571
|
/**
|
|
1395
1572
|
* Specifies the `id` of the DatePicker.
|
|
1573
|
+
* Example usage of the `id` property:
|
|
1574
|
+
* ```jsx
|
|
1575
|
+
* <DatePicker id="datepicker-id" />
|
|
1576
|
+
* ```
|
|
1396
1577
|
*/
|
|
1397
1578
|
id?: string;
|
|
1398
1579
|
/**
|
|
1399
1580
|
* Identifies the element(s) which will describe the component, similar to [HTML aria-describedby attribute](https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/ARIA_Techniques/Using_the_aria-describedby_attribute).
|
|
1400
1581
|
* For example these elements could contain error or hint message.
|
|
1582
|
+
* Example usage of the `ariaDescribedBy` property:
|
|
1583
|
+
* ```jsx
|
|
1584
|
+
* <DatePicker ariaDescribedBy="description-id" />
|
|
1585
|
+
* ```
|
|
1401
1586
|
*/
|
|
1402
1587
|
ariaDescribedBy?: string;
|
|
1403
1588
|
/**
|
|
1404
1589
|
* Identifies the element(s) which will label the component.
|
|
1590
|
+
* Example usage of the `ariaLabelledBy` property:
|
|
1591
|
+
* ```jsx
|
|
1592
|
+
* <DatePicker ariaLabelledBy="label-id" />
|
|
1593
|
+
* ```
|
|
1405
1594
|
*/
|
|
1406
1595
|
ariaLabelledBy?: string;
|
|
1407
1596
|
/**
|
|
1408
1597
|
* The accessible label of the component.
|
|
1598
|
+
* Example usage of the `ariaLabel` property:
|
|
1599
|
+
* ```jsx
|
|
1600
|
+
* <DatePicker ariaLabel="Date Picker" />
|
|
1601
|
+
* ```
|
|
1409
1602
|
*/
|
|
1410
1603
|
ariaLabel?: string;
|
|
1411
1604
|
/**
|
|
1412
1605
|
* Specifies the greatest valid date ([see example]({% slug dateranges_datepicker %})).
|
|
1606
|
+
* Example usage of the `max` property:
|
|
1607
|
+
* ```jsx
|
|
1608
|
+
* <DatePicker max={new Date(2099, 11, 31)} />
|
|
1609
|
+
* ```
|
|
1413
1610
|
*/
|
|
1414
1611
|
max?: Date;
|
|
1415
1612
|
/**
|
|
1416
1613
|
* Specifies the smallest valid date ([see example]({% slug dateranges_datepicker %})).
|
|
1614
|
+
* Example usage of the `min` property:
|
|
1615
|
+
* ```jsx
|
|
1616
|
+
* <DatePicker min={new Date(1900, 0, 1)} />
|
|
1617
|
+
* ```
|
|
1417
1618
|
*/
|
|
1418
1619
|
min?: Date;
|
|
1419
1620
|
/**
|
|
1420
1621
|
* Specifies the `name` property of the `input` DOM element.
|
|
1622
|
+
* Example usage of the `name` property:
|
|
1623
|
+
* ```jsx
|
|
1624
|
+
* <DatePicker name="datepicker-name" />
|
|
1625
|
+
* ```
|
|
1421
1626
|
*/
|
|
1422
1627
|
name?: string;
|
|
1423
1628
|
/**
|
|
1424
1629
|
* Fires each time any of the DatePicker elements gets blurred.
|
|
1630
|
+
* Example usage of the `onBlur` property:
|
|
1631
|
+
* ```jsx
|
|
1632
|
+
* <DatePicker onBlur={(event) => console.log('Blur event:', event)} />
|
|
1633
|
+
* ```
|
|
1425
1634
|
*/
|
|
1426
1635
|
onBlur?: (event: React.FocusEvent<HTMLSpanElement | HTMLDivElement>) => void;
|
|
1427
1636
|
/**
|
|
1428
1637
|
* Fires each time the user focuses any of the DatePicker elements.
|
|
1638
|
+
* Example usage of the `onFocus` property:
|
|
1639
|
+
* ```jsx
|
|
1640
|
+
* <DatePicker onFocus={(event) => console.log('Focus event:', event)} />
|
|
1641
|
+
* ```
|
|
1429
1642
|
*/
|
|
1430
1643
|
onFocus?: (event: React.FocusEvent<HTMLSpanElement | HTMLDivElement>) => void;
|
|
1431
1644
|
/**
|
|
@@ -1435,36 +1648,68 @@ export declare interface DatePickerSettings {
|
|
|
1435
1648
|
* - `animate: Boolean`—Controls the popup animation. By default, the open and close animations are enabled.
|
|
1436
1649
|
* - `appendTo`: — Defines the container to which the Popup will be appended. Defaults to [`body`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/body).
|
|
1437
1650
|
* - `popupClass: String`—Specifies a list of CSS classes that are used to style the popup.
|
|
1651
|
+
* Example usage of the `popupSettings` property:
|
|
1652
|
+
* ```jsx
|
|
1653
|
+
* <DatePicker popupSettings={{ animate: true, popupClass: 'custom-popup' }} />
|
|
1654
|
+
* ```
|
|
1438
1655
|
*/
|
|
1439
1656
|
popupSettings?: DateInputsPopupSettings;
|
|
1440
1657
|
/**
|
|
1441
1658
|
* Specifies if the calendar will be displayed ([see example]({% slug controlled_datepicker %}#toc-controlling-the-popup-state)).
|
|
1659
|
+
* Example usage of the `show` property:
|
|
1660
|
+
* ```jsx
|
|
1661
|
+
* <DatePicker show={true} />
|
|
1662
|
+
* ```
|
|
1442
1663
|
*/
|
|
1443
1664
|
show?: boolean;
|
|
1444
1665
|
/**
|
|
1445
1666
|
* Sets the `tabIndex` property of the DatePicker.
|
|
1667
|
+
* Example usage of the `tabIndex` property:
|
|
1668
|
+
* ```jsx
|
|
1669
|
+
* <DatePicker tabIndex={0} />
|
|
1670
|
+
* ```
|
|
1446
1671
|
*/
|
|
1447
1672
|
tabIndex?: number;
|
|
1448
1673
|
/**
|
|
1449
1674
|
* Sets the title of the `input` element of the DatePicker.
|
|
1675
|
+
* Example usage of the `title` property:
|
|
1676
|
+
* ```jsx
|
|
1677
|
+
* <DatePicker title="Date Picker Title" />
|
|
1678
|
+
* ```
|
|
1450
1679
|
*/
|
|
1451
1680
|
title?: string;
|
|
1452
1681
|
/**
|
|
1453
1682
|
* Determines whether to display a week number column in the `month` view of the Calendar ([see example]({% slug weeknumcolumn_datepicker %})).
|
|
1683
|
+
* Example usage of the `weekNumber` property:
|
|
1684
|
+
* ```jsx
|
|
1685
|
+
* <DatePicker weekNumber={true} />
|
|
1686
|
+
* ```
|
|
1454
1687
|
*/
|
|
1455
1688
|
weekNumber?: boolean;
|
|
1456
1689
|
/**
|
|
1457
1690
|
* Specifies the width of the DatePicker.
|
|
1691
|
+
* Example usage of the `width` property:
|
|
1692
|
+
* ```jsx
|
|
1693
|
+
* <DatePicker width="300px" />
|
|
1694
|
+
* ```
|
|
1458
1695
|
*/
|
|
1459
1696
|
width?: number | string;
|
|
1460
1697
|
/**
|
|
1461
1698
|
* Renders a floating label for the DatePicker.
|
|
1699
|
+
* Example usage of the `label` property:
|
|
1700
|
+
* ```jsx
|
|
1701
|
+
* <DatePicker label="Date Picker Label" />
|
|
1702
|
+
* ```
|
|
1462
1703
|
*/
|
|
1463
1704
|
label?: string;
|
|
1464
1705
|
/**
|
|
1465
1706
|
* Specifies the hint the DateInput displays when its value is `null` or there is no partial selection.
|
|
1466
1707
|
* For more information, refer to the article on
|
|
1467
1708
|
* [placeholders]({% slug placeholders_datepicker %}).
|
|
1709
|
+
* Example usage of the `placeholder` property:
|
|
1710
|
+
* ```jsx
|
|
1711
|
+
* <DatePicker placeholder="Enter a date" />
|
|
1712
|
+
* ```
|
|
1468
1713
|
*/
|
|
1469
1714
|
placeholder?: string | null;
|
|
1470
1715
|
}
|