- This topic has 1 reply, 2 voices, and was last updated 4 years, 11 months ago by .
Viewing 2 posts - 1 through 2 (of 2 total)
Viewing 2 posts - 1 through 2 (of 2 total)
- You must be logged in to reply to this topic.
JavaScript UI Libraries & Blazor Components Suite – Smart UI › Forums › ListBox › Is it possible to style the List Boxe's scrollbar without additional js?
Tagged: custom element, custom scroll bar styles, smart elements, smart framework, web component, web components
title sums up my question. Is it possible to define scroll attributes when initializing the list box?
Hi ctstrist,
It’s possible to customize the Scroll Bars inside the Listbox via CSS. Here’s the full CSS API of the element. Here’s an example on how to customize the Scroll bars inside specific List boxes:
#listbox {
--smart-scroll-bar-thumb-background-active: #003366;
--smart-scroll-bar-thumb-background-hover: #336699;
--smart-scroll-bar-thumb-background: #6699cc;
}
Best Regards,
Christopher
Smart HTML Elements Team
https://www.htmlelements.com