-
Notifications
You must be signed in to change notification settings - Fork 205
Add Date Range selection to x-calendar #40
Comments
If you want to be able to just pick a start and end date for a range instead of selecting the dates themselves, you can simulate this for the moment by utilizing two <x-datepicker>s, similar to how jQuery UI does it. However, date range selection would be a good feature, so adding a feature to restrict the available dates on an x-calendar would allow the UI for x-datepickers to be more intuitive, and is something we'll keep in mind. |
Is it ok if I tried working on this? |
I'd just need to know a few details about how exactly you'd need it implemented. Like the UI and so on. |
This is something someone suggested... What about sketching some ideas and discussing them before coding anything? :) |
Right. I thought it could be added to the 'multiple' attribute and have a little button to add a range selection mode where the next 2 dates selected would define the range. Only thing is that there wouldn't be any space in the layout for such a button. |
Or would it be better if I created a new attribute 'range'? Seems like overkill... |
So these are the current attributes:
I was thinking that one way of approaching this could be to have a |
But the point and drag wouldn't be very convenient if the range spanned more than 1 month. |
Yeah I thought that for a moment, too. But we want the point and drag to quickly select dates rather than clicking on each of the potentially 31 days in the month, right? This would be a solution to that issue: if I think the "spanned more than 1 month" is another problem :-) |
OK. I'll try it like that. |
closing because it will tracked in the individual repo at mozbrick/brick-calendar#3 |
I highly recommend adding proper date range selection to the x-calendar component as selecting multiple dates one by one is not what users expect. Every calendar "widget" should provide this feature (and I guess most of the good ones do).
The text was updated successfully, but these errors were encountered: