Having invalids set up correctly not just enhances the UX, but improves performance. For more information on recurrence check out the rule generatorĮxact dates and the start/end pairs can be passed as JS date objects, ISO date strings or Moment.js objects. Recurring dates - Passing recurrence rules as objects or in RRULE string format will be parsed.Date ranges - Passing start and end value pairs will disable/enable specific days that fall into that range.Exact dates - Passing exact values like: '' will disable/enable the specific day.Set valid - set the valids through the valid option.īoth the invalid and valid options support the following:.Set invalid - set the invalids through the invalid option.First make sure to have the min & max values right and then work your way through disabled values.ĭepending on your situation, you have two options: Enforcing validation is essential to a great UX.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |