DatePicker
Importβ
import { DatePicker } from '@resultadosdigitais/tangram-react-datepicker'
Propertiesβ
dateFormat
β
Type | string |
---|---|
Default | 'dd/MM/yyyy' |
Descriptionβ
Sets input date format.
Check the Unicode Tokens docs to see all available formats: https://git.io/fxCyr
defaultValue
β
double
β
inline
β
locale
β
Type | object |
---|---|
Default | ptBR |
Descriptionβ
Sets DatePicker's locale. To change this, it's necessary get local in 'date-fns/locale'.
import enUS from 'date-fns/locale/en-US';
onChange
β
Type | func |
---|---|
Default | () => {} |
Param | event React.SyntheticEvent - The event triggered when a date is changed. |
Param | date Date - The date. |
Descriptionβ
Callback fired when the DatePicker
changes.