Page 1 of 1
[Issue] When the resource name comes too large the sidebar expands too much
Posted: Fri Dec 03, 2021 10:12 pm
by licjapodaca
When the resource name comes too large the sidebar expands too much...
How can I add an ellipsis to the resources name and reduce the width of the sidebar?
- sidebar-too-large.png (105.02 KiB) Viewed 584 times
Specs:
Regards
Re: [Issue] When the resource name comes too large the sidebar expands too much
Posted: Sat Dec 04, 2021 10:10 am
by Animal
I think I remember putting a maxWidth on it in a recent version.
But if Iām mistaken, you can reconfigure any part of the UI:
https://www.bryntum.com/docs/calendar/api/Calendar/view/Calendar#config-sidebar
Re: [Issue] When the resource name comes too large the sidebar expands too much
Posted: Mon Dec 06, 2021 7:23 pm
by licjapodaca
Excellent @Animal, I already add a maxWidth
to the Sidebar and it works!!!
But, just one last thing, how can I put some ellipsis characters at the end of a large name resource by CSS ? ... because I already add to the class b-list-item
like so:
- ellipsis-resource-calendar.png (506.76 KiB) Viewed 554 times
And, how can I add a tooltip with the large complete name when the user do a mouse hover to this resource in the Sidebar?
Regards
Re: [Issue] When the resource name comes too large the sidebar expands too much
Posted: Tue Dec 07, 2021 1:08 pm
by alex.l
Hi licjapodaca,
You need to wrap the text into another span by defining custom https://bryntum.com/docs/calendar/api/Scheduler/widget/ResourceFilter#config-itemTpl and apply your styles to it.
Re: [Issue] When the resource name comes too large the sidebar expands too much
Posted: Wed Dec 08, 2021 7:05 pm
by licjapodaca
Excellent @Alex, it works