Skip to content

How to Make Calendar's resourceTimelineDay View Fill Full Width After Setting slotMinTime and slotMaxTime? #54

Answered by nrdnisml
nrdnisml asked this question in Q&A
Discussion options

You must be logged in to vote

I managed to find a way by adding the slotWidth option in the getOptions() function to maintain the width of the event bar

public function getOptions(): array
    {
        return [
            'slotMinTime' => '08:00:00',
            'slotMaxTime' => '21:00:00',
            'slotWidth' => '98',
        ];
    }

and adding the following code in custom css with the same px value like this to preserve the timeline column's width

.ec-timeline .ec-line,
.ec-timeline .ec-time {
    width: 98px;
}

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@nrdnisml
Comment options

Answer selected by nrdnisml
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants