I want to customize the date template showing year and week number. I’ve tried to use dayTemplate option, but it’s not working and calendar render the standard header with start - end of the week.
Is it possible to customize that template or at least add an option to show week number or year?
The dayTemplate renders the mbsc-timeline-day element, which contains the days. You can check it by switching to daily resolution. There’s no template for customizing the week header at the moment, however you can change the text of the months by using the monthNamesShort option.
I need something similar to that, with also a row for the year number above the week header cell.
Are you planning to implement a template also for the week timeline resolution header?
Thank you for sharing!
We do not have a template for the week view header at the moment, but I just created a feature request and added your voice to it.
Happy to let you know that we are introducing Mobiscroll 5.26 where w e added the renderWeek / renderWeekFooter and weekTemplate / weekFooterTemplate options for custom week content rendering in the timeline header and footer.
The timeline receives a number of new templating capabilities that enables the customization of the header and footer for hour, day, week, month and year columns. By using steps that are below the hour, it is possible customize sub-hour header and footers as well.