state

defines the position and size of Sidemenu

function state;

Values

  • state
    an object that contains the position and size values set as Sidemenu properties
  • Example

    webix.ui({
        view: "sidemenu",
        width: 200,
        position: "left",
        state:function(state){
            // get the toolbar's height
            var toolbarHeight = $$("toolbar").$height;
            // increase the 'top' property
            state.top = toolbarHeight;
            // decrease the 'height' property
            state.height -= toolbarHeight;
        };
    });

    See also
  • Articles
  • Back to top
    Join Our Forum
    We've retired comments here. Visit our forum for faster technical support, connect with other developers, and share your feedback there.