Smart UI Components & Libraries – Grid, Scheduler, Gantt, Kanban for Angular, React, Next.js, Vue, Blazor, JavaScript › Forums › Scheduler › Customize scheduler cells height
- This topic has 7 replies, 5 voices, and was last updated 2 years, 7 months ago by
svetoslav_borislavov.
-
AuthorPosts
-
May 24, 2022 at 2:40 pm #103253
Javi Navarrete
ParticipantHi,
We need to change the height of the cells when is in “Week” view, to show more events and scroll less.
Is there any parameter we could change for it?.
Thanks
May 25, 2022 at 11:31 am #103258admin
KeymasterHi Javi,
You can use the –smart-scheduler-timeline-cell-height CSS variable to customize the cells height in Scheduler.
.smart-scheduler { --smart-scheduler-timeline-cell-height:30px; }Best regards,
Peter StoevjQWidgets Team
https://www.jqwidgets.com/March 6, 2023 at 5:01 am #104470Anh Hoang
Participantohh thank you, one more question, i want adjust height event
.smart-scheduler .smart-scheduler-event .pending {
height: 120px;
}try with that but not working, could you give some advise?
-
This reply was modified 2 years, 7 months ago by
Anh Hoang.
March 6, 2023 at 5:33 am #104474svetoslav_borislavov
ParticipantHi,
The event’s height depends on the duration of the event. You can change the height of the cells, this will impact the height of the event
Best Regards,
Svetoslav BorislavovSmart UI Team
https://www.htmlelements.com/March 6, 2023 at 5:59 am #104475Anh Hoang
ParticipantHi,
in month view, i’m create an event from 12:00 AM to 11:00 PM but it’s too small, 1/4 of cell, how to make it more larger?

-
This reply was modified 2 years, 7 months ago by
Anh Hoang.
March 7, 2023 at 6:22 am #104489Steven Peterson
ParticipantHi,
To change the size of the event, you can use the –smart-scheduler-event-size CSS variable.
Here is an example: https://codepen.io/Steevee222/pen/dyqzQXLBest Regards,
Steven PetersonSmart UI Team
https://www.htmlelements.com/March 20, 2023 at 7:48 am #104573Anh Hoang
ParticipantHello, i add classname to scheduler and adjust it like this:
‘& .calendar-scheduler .smart-scheduler-event’: {
height: ’50px!important’,</div>
},
it’s look so ugly, how can i make it dynamic( ex 1 or 2 will expand, and remain in ” (number) more” ). Thanks for your help
March 20, 2023 at 8:44 am #104581svetoslav_borislavov
ParticipantHi,
As shown in my previous reply, the proper way of changing the scheduler event size is with the CSS variable.
If you want to change it, you may have a class that changes this variable and applies it when needed.Best Regards,
Svetoslav BorislavovSmart UI Team
https://www.htmlelements.com/ -
This reply was modified 2 years, 7 months ago by
-
AuthorPosts
- You must be logged in to reply to this topic.