Show cool things you have done with our products


Post 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'
        }
    }

Post 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.

Post 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

Post 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 :)

Post by kesikp »

:cry: How?

Post 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.

Post Reply