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