You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am looking for a way to add custom validation to a DateRangePicker we built with the hook API. I cannot seem to find an example or any documentation about doing any custom validation with the hook API? 🤔
I want to implement a feature that would validate how long is my range selected. As in at least X days apart?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I am looking for a way to add custom validation to a DateRangePicker we built with the hook API. I cannot seem to find an example or any documentation about doing any custom validation with the hook API? 🤔
I want to implement a feature that would validate how long is my range selected. As in at least X days apart?
I can see there is a way to do custom validation using the Component API.
I want to do the same thing, just with hooks?
Here's a sandbox with the basic implementation you can use to demonstrate the idea, if you have one? 🙏
Beta Was this translation helpful? Give feedback.
All reactions