Page 1 of 1

Custom Agenda - Change header

Posted: Sat Dec 07, 2024 9:01 am
by codevlabs

Guys,

What is the best way to customise an agenda header? I am creating new agenda view with upcoming events only and want to hide the navigations buttons (in this view only) and change the title. Both edits need to manipulate only this mode without affecting the default Agenda view mode.

thanks.


Re: Custom Agenda - Change header

Posted: Sat Dec 07, 2024 9:30 am
by Animal

Use this event: https://bryntum.com/products/calendar/docs/api/Calendar/view/Calendar#event-activeItemChange

And manipulate the visibility of the documented tbar items.


Re: Custom Agenda - Change header

Posted: Sat Dec 07, 2024 10:24 am
by Animal

If the date of the Agenda view is entirely controlled by your code, you can configure it with this: https://bryntum.com/products/calendar/docs/api/Calendar/widget/mixin/CalendarMixin#property-syncViewDate


Re: Custom Agenda - Change header

Posted: Sun Dec 08, 2024 12:47 pm
by codevlabs

Thanks Animal