[OPEN-94] Setting the start/end time of a day

Request new features or modifications for Extensible components

[OPEN-94] Setting the start/end time of a day

Postby omermx » Tue Sep 21, 2010 2:38 pm

Hi, have looked at the documentation and I can't same to find an easy way to set the start and end time displayed for a day. By default a day begins at 12am and end 11pm, it would be nice to have a way to modify this e.g. start 8am end 6pm etc.

Cheers,
Omer
omermx
 
Posts: 10
Joined: Tue Sep 21, 2010 2:35 pm

Re: Setting the start/end time of a day

Postby brian.moeskau » Wed Sep 22, 2010 9:47 pm

Thanks Omer. I'll put that on the list to add at a later date (moving this to feature requests). At the moment I'm focused on functionality and bug fixes, but this would make a great enhancement.
Personal Blog: Extraneous / Twitter: @bmoeskau / Meetup: Austin Bleeding Edge Web
User avatar
brian.moeskau
Site Admin
Site Admin
 
Posts: 1344
Joined: Sat Sep 18, 2010 5:00 pm
Location: Austin, Texas

Re: [OPEN-94] Setting the start/end time of a day

Postby srikant75 » Thu Sep 23, 2010 12:42 pm

I agree with omer that would be an excellent feature... so we can control the work day with that.
srikant75
Premium Member
Premium Member
 
Posts: 50
Joined: Tue Sep 21, 2010 7:12 pm

Re: [OPEN-94] Setting the start/end time of a day

Postby Nom4d3 » Fri Jul 01, 2011 11:29 am

UP!

I'm trying to find a solution for this issue too.

My idea is:
After the Store loads I would set new values for viewStartHour and viewEndHour. My calendar becomes big cause I'm using 5min intervals. And sometimes there are a lot of useless whitespace that I won't need for anything.

setViewStartHour(), setViewEndHour() and scrollStartHour() would be great additions!

Thanks!
Nom4d3
 
Posts: 4
Joined: Fri Jul 01, 2011 11:22 am

Re: [OPEN-94] Setting the start/end time of a day

Postby brian.moeskau » Fri Jul 01, 2011 12:33 pm

You should be able to just set the existing properties and refresh the view. Is that not working?
Personal Blog: Extraneous / Twitter: @bmoeskau / Meetup: Austin Bleeding Edge Web
User avatar
brian.moeskau
Site Admin
Site Admin
 
Posts: 1344
Joined: Sat Sep 18, 2010 5:00 pm
Location: Austin, Texas

Re: [OPEN-94] Setting the start/end time of a day

Postby Nom4d3 » Mon Jul 04, 2011 7:10 am

Look the code below. The new parameters are ok, but the refresh is not working.

Code: Select all

         eventStore: Ext.create('Extensible.calendar.data.EventStore', {
            ...
            listeners: {
               'load': function (s) {
                  var view = me.getActiveView();

                  console.info(view.viewStartHour); //0
                  console.info(view.viewEndHour);  //24

                  view.viewStartHour = 8;
                  view.viewEndHour = 14;

                  view.refresh();
                  console.info(view.viewStartHour); //8
                  console.info(view.viewEndHour); //14
               }
            }
         })


Am I doing something wrong?
Nom4d3
 
Posts: 4
Joined: Fri Jul 01, 2011 11:22 am

Re: [OPEN-94] Setting the start/end time of a day

Postby brian.moeskau » Mon Jul 04, 2011 9:23 am

OK, although the updated values will be used in the logic that calculates which events to display, the view template will not update since it currently gets set up in afterRender, which only happens once. I'll have to add setter functions in order to cause a template refresh if those change. I already have it logged as a feature request, so I'll take a look at adding this in a future release.

BTW, note that these configs only apply to the day and single week views (any view that shows individual hours), so if the active view is something else this would have no effect even if the feature was working.
Personal Blog: Extraneous / Twitter: @bmoeskau / Meetup: Austin Bleeding Edge Web
User avatar
brian.moeskau
Site Admin
Site Admin
 
Posts: 1344
Joined: Sat Sep 18, 2010 5:00 pm
Location: Austin, Texas

Re: [OPEN-94] Setting the start/end time of a day

Postby Nom4d3 » Mon Jul 04, 2011 12:59 pm

brian.moeskau wrote:OK, although the updated values will be used in the logic that calculates which events to display, the view template will not update since it currently gets set up in afterRender, which only happens once. I'll have to add setter functions in order to cause a template refresh if those change. I already have it logged as a feature request, so I'll take a look at adding this in a future release.


Good to know! For while I will try to set the limits before the calendar rendering.

brian.moeskau wrote:BTW, note that these configs only apply to the day and single week views (any view that shows individual hours), so if the active view is something else this would have no effect even if the feature was working.

Yep, I know. I'm using only the Day View.

Thanks!
Nom4d3
 
Posts: 4
Joined: Fri Jul 01, 2011 11:22 am

Re: [OPEN-94] Setting the start/end time of a day

Postby wemerson.januario » Mon Nov 28, 2011 3:39 am

+1
wemerson.januario
 
Posts: 17
Joined: Thu Dec 16, 2010 7:31 pm


Return to Feature Requests

Who is online

Users browsing this forum: No registered users and 1 guest

cron