getHead

gets the ui view of the window header

object getHead();
objectthe window header object

Example

win = webix.ui({
  view:"window",
  head:"My text",
  body:"My content", 
}).show();
 
win.getHead().setHTML("New text");

Details

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
Join Our Forum
We've retired comments here. Visit our forum for faster technical support, connect with other developers, and share your feedback there.
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.