DateRangePicker
Import
import { DateRangePicker } 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
endDate
inline
locale
Type | object |
---|---|
Default | ptBR |
Description
Sets DateRangePicker's locale. To change this, it's necessary get local in 'date-fns/locale'.
import enUS from 'date-fns/locale/en-US';
onSelectEnd
Type | func |
---|---|
Default | () => {} |
Param | date Date - The date. |
Description
Callback fired when the DateRangePicker
end date is selected.
onSelectStart
Type | func |
---|---|
Default | () => {} |
Param | date Date - The date. |
Description
Callback fired when the DateRangePicker
start date is selected.