header

sets the header for a panel

string|object header;

Example

webix.ui({
    view:"dashboard",
    gridColumns:4, gridRows:3,
    cells:[
        { view:"panel", header:"First panel", x:0, y:0, dx:1, dy:1},
        // more cells
    ]
});

Details

If the header value is a string, then Webix template is used to build the head. If you need a more complex header, define the needed configuration through the object definition:

header:{
    view:"toolbar", cols:[
        { view:"label", label: "First panel" },
        {
            view:"button", label: 'Close',
            click:function(){
                ...
            }
        }
    ]
}
Back to top