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
By default it will have neutral colors and a flat aspect even though the `flat` property is `false` by default. Also, some properties exclude others, for example a button cannot be `flat` and `raised` at the same time.
Copy file name to clipboardExpand all lines: components/date_picker/readme.md
+5-1Lines changed: 5 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -48,17 +48,21 @@ If you want to provide a theme via context, the component key is `RTDatePicker`.
48
48
|:-----|:-----|:-----|:-----|
49
49
|`active`|`Boolean`|`false`| Allows to control if the picker should be shown from outside. Beware you should update the prop when the Dialog is closed. |
50
50
|`autoOk`|`Boolean`|`false`| Automatically selects a date upon clicking on a day. |
51
+
|`cancelLabel`|`String`|`'Cancel'`| Label used for cancel button on date picker dialog. |
51
52
|`className`|`String`|| This class will be placed at the top of the `DatePickerDialog` component so you can provide custom styles.|
52
53
|`disabledDates`|`Array`|| An array of date objects which will be disabled in the calendar. All other dates will be enabled.|
53
54
|`enabledDates`|`Array`|| An array of date objects which will be enabled in the calendar. All other dates will be disabled.|
54
55
|`inputClassName`|`String`|| This class will be applied to `Input` component of `DatePicker`. |
55
56
|`inputFormat`|`Function`|| Function to format the date displayed on the input. |
56
57
|`label`|`String`|| The text string to use for the floating label element in the input component.|
57
-
|`locale`|`String` or `Object`|`'en'`| Set the locale for the date picker dialog ('de','en','es','af','ar','be','bg','bn','bo','br','bs','ca','gl','eu','pt','it',fr'). Object is supported too (see example above). |
58
+
|`locale`|`String` or `Object`|`'en'`| Set the locale for the date picker dialog ('de','no','en','es','af','ar','be','bg','bn','bo','br','bs','ca','gl','eu','pt','it','fr','ru','ua'). Object is supported too (see example above). |
58
59
|`maxDate`|`Date`|| Date object with the maximum selectable date. |
59
60
|`minDate`|`Date`|| Date object with the minimum selectable date. |
60
61
|`onChange`|`Function`|| Callback called when the picker value is changed.|
62
+
|`onClick`|`Function`|| Callback fired on Input click.|
63
+
|`onDismiss`|`Function`|| Callback fired after dismissing the Dialog.|
61
64
|`onEscKeyDown`|`Function`|| Callback called when the ESC key is pressed with the overlay active. |
|`onOverlayClick`|`Function`|| Callback to be invoked when the dialog overlay is clicked.|
63
67
|`readonly`|`Boolean`|| The input element will be readonly and look like disabled.|
64
68
|`sundayFirstDayOfWeek`|`Boolean`|`false`| Set week's first day to Sunday. Default week's first day is Monday ([ISO 8601](https://en.wikipedia.org/wiki/ISO_8601#Week_dates)). |
0 commit comments