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
width
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.
placeholder
position
value
shouldCloseOnSelect
titleAction
yearlyView
Feedback
Para reportar algum problema ou sugerir alterações, use nosso formulário de melhorias ou, se preferir, abra uma issue no nosso Github.