Our powerful JS Calendar component


Post by tokytok »

Hi,

I have to render events of 1 hour every 15 minutes.
(ex : 8:00 to 9:00, 8:15 to 9:15 etc ...)

This is the render with bryntum calendar :
Image

Could you tell me if you have an option to change the event render layout ? (like the "eventLayout" on scheduler or other props)

Thanks a lot.


Post by mats »

First of all, please show how you would like it to look?


Post by Animal »

There is a currently private (perhaps we should change that) config for DayView (WeekView is a 7 * DayView) called eventLayout which specifies how to lay out events inside a day column.

We should probably document the API of this so that custom day layouts can be implemented, but I think that the default one may be configurable enough.

Try configuring your Calendar with

modes : {
    week : {
        eventLayout : {
            clearanceMinutes : 15
        }
    }
}

The layout class itself is documented: https://www.bryntum.com/docs/calendar/#Calendar/layout/day/FluidDayLayout


Post by tokytok »

Thanks, it's what I need :)


Post Reply