Menu

#22 Month Range to Day Range

open
nobody
5
2012-12-11
2012-01-03
Kempy
No

I think it would be more convenient if the range in the event list would be "Day Range" instead of "Month Range".
I flicked through the source code and based on the first sight of it, I think it would be quite easy to do the changes.

Then users would be able to choose e.g. 1 day to show only today's events if any or 7 days to show events in the next seven days if any or 365 days...

On the other hand there could be an option to choose which range user would like to use - day, week or month.
Obviously this needs more coding than the previous suggestion...

Discussion

  • Michael Prager

    Michael Prager - 2012-01-03

    Yes this can easily be done. Just change this line here:

    EndRange: (new Date(now.getFullYear(), now.getMonth() + config['monthRange'].Value, now.getDate(), 0, 0, 0))

    to this:

    EndRange: (new Date(now.getFullYear(), now.getMonth(), now.getDate() + config['monthRange'].Value, 0, 0, 0))

    However for a complete implementation, one would have to consider the old meaning of the value for those users who update their widget.

    I'm not sure how useful this feature would be, users usually want to display as many events as possible. A range of e.g. 2 days is a very unusual case.

     
  • Sampo Niskanen

    Sampo Niskanen - 2012-02-23

    I agree this would be good.

    This should be combined with an option to remove the date display for events within the next week. I'd like the widget to display only events one week ahead, so it could display only the weekday and not the full date.

     

Log in to post a comment.