sets the view header
webix.ui({
view:"window",
height:250,
head:"My Window",
body:{
template:"Some text"
}
}).show();
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();
}
}
]
}