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';
width
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 |
|---|
Description
Sets DateRangePicker's pre-selected initial date. By default, it is the current date of the component's first rendering.
minDate
maxDate
Feedback
Para reportar algum problema, solicitar novos ícones, solicitar novos casos de uso de componentes, tirar dúvidas, enviar sugestões ou reportar bugs, entre em contato pelo nosso canal no Slack #tangram-design-system.