We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
DateRange
@maskito/kit
We should create mask for InputDateRange. In the most cases the new mask should behave in the same way as Date-mask.
Date
import {Maskito} from '@maskito/core'; import {maskitoDateRangeOptionsGenerator} from '@maskito/kit'; const inputDateRange = new Maskito( element, maskitoDateRangeOptionsGenerator({ mode: 'YMD', separator: '.', // ... }) )
mode
Possible values:
DMY
MDY
YMD
Default value: DMY.
separator
Symbol for separating date-segments (days, months, years). Default value: . (dot).
.
min
Accepts native Date. Validates value ONLY when value is fully completed (after user input). Default value: null.
null
max
minLength
Accepts ??? . Minimal length of range Default value: null.
???
maxLength
Accepts ??? . Maximal length of range Default value: null.
The text was updated successfully, but these errors were encountered:
nsbarsukov
Successfully merging a pull request may close this issue.
Which package(s) are relevant/related to the feature request?
@maskito/kit
Description
We should create mask for InputDateRange.
In the most cases the new mask should behave in the same way as
Date
-mask.Proposed API
Configurable options
mode
Possible values:
DMY
- dd.mm.yyyyMDY
- mm.dd.yyyyYMD
- yyyy.mm.ddDefault value:
DMY
.separator
Symbol for separating date-segments (days, months, years).
Default value:
.
(dot).min
Accepts native
Date
.Validates value ONLY when value is fully completed (after user input).
Default value:
null
.max
Accepts native
Date
.Validates value ONLY when value is fully completed (after user input).
Default value:
null
.minLength
Accepts
???
.Minimal length of range
Default value:
null
.maxLength
Accepts
???
.Maximal length of range
Default value:
null
.The text was updated successfully, but these errors were encountered: