Support responsive date pickers for different screen sizes
See original GitHub issueHi guys, thanks for this great package!
Is there any way of having the date picker behave differently at different resolutions? Basically I want to set withPortal={true}
, but only for phone screens.
One workaround I thought of was to have two DateRangePicker
s, each one visible only on phones, respectively larger screens, but they both get rendered exactly the same (with portal).
Is there a solution for this that I missed? (preferably not very hacky) And, if not, are multiple date pickers supported?
Issue Analytics
- State:
- Created 7 years ago
- Comments:5
Top Results From Across the Web
Support responsive date pickers for different screen sizes #108
Hi guys, thanks for this great package! Is there any way of having the date picker behave differently at different resolutions?
Read more >Responsive datepicker calendar for mobile, desktop - Mobiscroll
View calendar demos for progressive web and hybrid apps with validation, min/max, week counter, multiple select & more. Last update: Dec 19, 2022....
Read more >Date pickers - Material Design
Date pickers let users select a date or range of dates. They should be suitable for the context in which they appear. Date...
Read more >Date And Time Picker - Building WordPress Since 2011
Find the best Date and Time Picker to work nice with any screen size · 1. jQuery Time Picker Add-on · 2. Bootstrap...
Read more >Responsive Coaches toolkit: Date Time Picker control - IBM
This control is a user interface in which the user can view and enter dates and times. This control supports the Gregorian calendar...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I dont know if this can help someone, but you can make the calendar’s width fluid using a bit of css :
@majapw Thanks!
matchMedia
fits perfectly with thewithPortal
prop. Based on this we could easily set the orientation in the same manner:Since this is a common use case it would be nice to have this documented, maybe as a best practice.
When trying to add 2
DateRangePicker
s to my component with different props:they both get rendered the same (as if they were both set with
VERTICAL_ORIENTATION
andwithPortal={true}
.I don’t have a need for this anymore, but if someone else experiences this, they should open a new issue.