Our powerful JS Calendar component


Post by dwilliams »

I am wanting to change the color of the events in the Calendar List View, just like it does in the Month View, but it doesn't appear to work the same way. How can the events in the list view be configured to display a different background color?

Regards,

Dan


Post by alex.l »

You can override columns with renderers you prefer to see, like in regular grid.
I've created a feature request to make it more comfortable with no need to override all columns or do it at runtime. The ticket is here: https://github.com/bryntum/support/issues/3500

https://bryntum.com/docs/calendar/#Grid/data/ColumnStore
https://bryntum.com/docs/calendar/#Grid/column/Column#config-renderer

Check EventList.js to see default configs for columns.

modes : {
    agenda : {
        title : 'Conference events'
    },
    // Disable year view completely
    year : null,
    // We want to see the events as a list
    list : {
        range : 'month',
        columns : [{ ... }] // array of columns you want 
    }
}

All the best,
Alex


Post Reply