What is your proposal?
Two new props for ClayDatePicker, min and max. These would be equivalents of min and max attributes of <input type="date">. Input of dates beyond this range would be disabled.
Why would adopting this proposal be beneficial?
We are using date input restriction in DXP, in commerce orders. max date is set to current date. There, we are using native date input, implemented in FDS DateRangeFilter. We would like to:
- implement date & time picker in FDS, that's the product requirement
- replace native datepicker implementation in FDS
DateRangeFilter with ClayDatePicker, because Clay date & time picker has very nice UX, has consistent l&f in browsers, and has consistent l&f with other Clay components in DXP.
But, this would not be possible, without losing the min / max feature.
What are the alternatives to this proposal?
None from the perspective of Clay, we can choose not to implement this. For DXP, we can keep using native date picker, adding only ClayTimePicker for time.
/cc @dsanz @ugeortiz
What is your proposal?
Two new props for
ClayDatePicker,minandmax. These would be equivalents of min and max attributes of<input type="date">. Input of dates beyond this range would be disabled.Why would adopting this proposal be beneficial?
We are using date input restriction in DXP, in commerce orders.
maxdate is set to current date. There, we are using native date input, implemented in FDSDateRangeFilter. We would like to:DateRangeFilterwithClayDatePicker, because Clay date & time picker has very nice UX, has consistent l&f in browsers, and has consistent l&f with other Clay components in DXP.But, this would not be possible, without losing the min / max feature.
What are the alternatives to this proposal?
None from the perspective of Clay, we can choose not to implement this. For DXP, we can keep using native date picker, adding only
ClayTimePickerfor time./cc @dsanz @ugeortiz