Scroll on item of Sidebar

Hi,
We can enable the scroll on the sidebar. How to enable scroll on subpanel?

If we click on "Music\Georgy Sviridov" we can not see al items
https://snippet.webix.com/7ma5wm7u

Thanks
Pier

Tagged:

Comments

  • edited September 14

    Hello,

    Please, check the example:
    https://snippet.webix.com/nxvb18hf

    There getPopup method was used to return the popup's object and queryView method to return menu view for scrolling

    var menu = side.getPopup().queryView({view:"menu"});
    

    To define the scroll it's need to work with menu(and submenu) configuration
    You will also need to remove autoheight, which is set to true by default

    webix.extend(menu.config.submenuConfig, {
      height:150, 
      scroll:true,
      autoheight: false
    });
    

    where config - defines configuration of a child submenu popup (if any). The configuration overrides the one defined via submenuConfig;

Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!