Feature #1218
closed
Add support for isValidDate attribute in DateTimePicker componnent
Added by Roman Kučera over 6 years ago.
Updated over 6 years ago.
Description
Componnent react-datetime has attribute isValidDate which can be used for disabling some dates, but our DateTimePicker which is wrapper for it does not supporting it.
Use case - User can pick only date in future, or pick only weekends for example.
- Status changed from In Progress to Needs feedback
- Assignee changed from Roman Kučera to Radek Tomiška
- % Done changed from 0 to 80
- Category set to Frontend
- Status changed from Needs feedback to Closed
- Assignee changed from Radek Tomiška to Roman Kučera
- Target version set to Malachite (9.0.0)
- % Done changed from 80 to 100
I did test and review, it works and code looks nice. I added some doc into readme and component (parameter was missing).
Note: New property is only for FE DateTimePicker component - defines dates that can be selected. Don't forget to implement BE validation or standard FE form component validation with it together.
- Related to Task #1234: DataTimePicker validation base on isValidDate attribute added
Also available in: Atom
PDF