JavaScript UI Libraries & Blazor Components Suite – Smart UI Forums ListBox Is it possible to style the List Boxe's scrollbar without additional js?

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #100538
    admin
    Keymaster
    Up
    0
    Down

    title sums up my question. Is it possible to define scroll attributes when initializing the list box?

    #100540
    Hristofor
    Member
    Up
    0
    Down

    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

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.