gets the ui view of the window header
object | the window header object |
win = webix.ui({
view:"window",
head:"My text",
body:"My content",
}).show();
win.getHead().setHTML("New text");
The method returns the object of a Webix component that currently builds window head, so you can use its API to modify the window head.
If head is defined via a string, then Webix template is used.
To change template text dynamically, setHTML method is applied.
Note, that if you set the close property to true the template can be accessed as:
const template = $$("window").getHead().getChildViews()[0];