Timeline: show/hide hours not working with setOptions

I’m trying to change the visible hours (startTime and endTime) of the timeline calendar with setOptions method from mobiscroll but it is not working.

Here is an example of the code I’m using:

setOptions({
view: {
timeline: { type: ‘week’, startTime: ‘08:00’, endTime: ‘14:00’ },
},
});

Thanks for your help

Hello @bao :wave:

Can you share a bit more information about why you want to set the view option globally?

If you are trying to set options dynamically, here you can read more information on how to solve that.