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.
position
β
startDate
β
Type | instance of Date |
---|---|
Default | new Date() |
Descriptionβ
Sets DateRangePicker's pre-selected initial date.