Page 1 of 1

Sch.preset.Manager

Posted: Mon Feb 08, 2016 6:44 pm
by kesikp
I have a question about one example:
https://www.bryntum.com/examples/schedul ... eaxis.html

I want to be visible other hours like in this example:
https://www.bryntum.com/examples/schedul ... ditor.html

What should I add to "Sch.preset.Manager"?
headerConfig      : {
        bottom:  {
		unit     : "HOUR",
		align       : 'center',
            
        renderer : function (start, end, cfg) {
			cfg.headerCls = 'sch-hdr-startend';
			return Ext.String.format(
				'<span class="sch-hdr-start">{0}</span><span class="sch-hdr-end">{1}</span>',
					
				Ext.Date.format(start, 'G:i'),
				Ext.Date.format(end, 'G:i'));
            }
		},

        middle    : {
            unit       : "DAY",
            dateFormat : 'd/m D'
        }
    }

Re: Sch.preset.Manager

Posted: Tue Feb 09, 2016 9:19 am
by Maxim Gorkovsky
Hello.
What are you trying to achieve? If you want your timeline to look like in editor example - use same view preset.

Re: Sch.preset.Manager

Posted: Tue Feb 09, 2016 9:57 am
by kesikp
I want for each day make to set the time range, as in this example:
https://www.bryntum.com/examples/schedul ... eaxis.html

At the same I want to see the intermediate hours as in this example:
https://www.bryntum.com/examples/schedul ... ditor.html

Re: Sch.preset.Manager

Posted: Tue Feb 09, 2016 10:57 am
by mats
Try to read both samples to see what is done in each of them, you'll notice it can be done in < 5 minutes :)

Re: Sch.preset.Manager

Posted: Tue Feb 09, 2016 11:50 am
by kesikp
:cry: How?

Re: Sch.preset.Manager

Posted: Tue Feb 09, 2016 12:02 pm
by Maxim Gorkovsky
As Mats told: investigate those examples, read docs, experiment with code. Or you can hire us to do that for you, in that case please contact sales at bryntum dot com for a quote.