gets the ui view of the window header

object getHead();
objectthe window header object


win = webix.ui({
  head:"My text",
  body:"My content", 
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];
See also
Back to top
If you have not checked yet, be sure to visit site of our main product Webix javascript component library and page of javascript window product.