autowidth

adjusts the width of Submenus to their labels

boolean autowidth;

Example

webix.ui({
    view:"menu",
    autowidth:true,
    data:[
        { id:"1",value:"Short...",
            submenu:[ "FB", "G+", "TW" ]},
        { id:"2",value:"Medium...",
            submenu:[ "Facebook", "Google+", "Twitter" ]},
        ...
    ]
});

Related samples

See also
  • Articles
  • Back to top
    If you have not checked yet, be sure to visit site of our main product Webix open source html5 framework and page of javascript menu product.