brOOper / gwt-cal

Automatically exported from code.google.com/p/gwt-cal
0 stars 0 forks source link

Settings should provide start time to show at calendar views #72

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Description of the new feature:
A way of config the time the calendar starts at the view level 

Use Case:
You have a calendar for appointments during working hours say from 9:00 AM to 
6:00 PM, so there is no appointment before 9:00 AM. But when calendar first 
render it starts at 00:00 hours so you can't see your appointments until you 
scroll.
It would be nice if we could custom this, like:
settings.setStartTime(9) 

Assumptions:
1.
2.
3.

Exceptions:
1.
2.
3.

Code / psuedo-code:
settings.setStartTime(9) 

Original issue reported on code.google.com by dardi...@gmail.com on 21 Jul 2010 at 10:43

GoogleCodeExporter commented 8 years ago
This feature actually already exists: see calendar.setScrollToHour(9)

Take a look at how it is used in the gwt-cal-demo project's iCalCalendarPanel. 
You cannot call this function until the calendar is actually rendered on the 
screen (because otherwise the scrollbar doesn't exist yet). I use a 
DeferredCommand to accomplish this

Original comment by Brad.Ryd...@gmail.com on 15 Aug 2010 at 6:51