close

adds a "close" icon to the window header

boolean close;

Example

webix.ui({
    view:"window",
    height:250,
    width:350,
    left:650, top:250,
    close:true,
    head:"This window can be closed",
    body:{
        template:"Content"
    }
}).show();


Default value:

false

Related samples

Details

The setting makes sense only if you define the header as a string or a template.

Note that if the property is set to true the header structure is converted from a regular template into a layout containing the template itself and the icon.

const head = $$("window").getHead(); // layout with a template and a close icon
Back to top