head

sets the view header

object|string|false head;

Example

webix.ui({
    view:"window",
    height:250,
    head:"My Window",
    body:{
        template:"Some text"
    }
}).show();

Related samples

Details

If the head value is a string, then Webix template is used to build the head. Note that if the close property is set to true the header will be converted into Webix Layout.

If you need a more complex header, define the needed configuration through the object definition:

head:{
    view:"toolbar", cols:[
        { view:"label", label: "This window can be closed" },
        {
            view:"button", label: 'Close Me',
            click:function(){
                $$('win3').close();
            }
        }
    ]
}
See also
  • API
  • Articles
  • Back to top
    If you have not checked yet, be sure to visit site of our main product Webix javascript ui library and page of js window product.