You can customize the look and feel of the header and footer of Window together with their functionality.

Default and custom icons

dhtmlxWindow uses the Material Design-based icons by default. However, you can use any other icon font pack, if necessary. For this, you need to include the desired icon font on a page and apply icons in any possible part of the window: in the header or the footer.

For example, you can use the Font Awesome icon pack by including link to its CDN after the source files of dhtmlxWindow as follows:

<script type="text/javascript" src="../../codebase/window.js"></script>
<link rel="stylesheet" href="../../codebase/window.css">
<link rel="stylesheet" href="" 

Then you can use the name of the icon as the value of the icon property in the object with the control parameters for the header or the footer. See details below.

Related sample:  Window. Custom Icons

Controls and operations

It is possible to add any Toolbar controls into the header/footer of a window. You can work with controls in the header/footer of a window in the same way as with Toolbar controls, i.e. add new controls, delete unnecessary ones and update the settings of controls, e.g. labels and icons.

Adding controls

Besides initial controls, you can add other controls into the header/footer on the fly.

For this, you should apply the add method of Data Collection. It takes the parameters below:{icon: "mdi mdi-fullscreen", id: "fullscreen"}, 2);{type: "spacer"});{icon: "mdi mdi-thumb-up", id: "like"});{icon: "mdi mdi-thumb-down", id: "dislike"})

Related sample:  Window. Custom Buttons

Updating controls

You can change the icon of the Window control and its other config options with the help of the update method of Data Collection. It takes two parameters:

  • the id of an icon button
  • an object with a new configuration of the control"close", {
    // using FA icon for the Close button
    icon: "fas fa-times" 

Related sample:  Window. Custom Icons

Deleting controls

To remove a control from the header/footer, make use of the remove method of Data Collection. Pass the id of the control that should be removed to the method:"accept");


There is a possibility to make changes in the look and feel of a window.

Related sample:  Window. Custom Styles

For this you need to take the following steps:

  • add a new CSS class(es) with desired settings in the <style> section of your HTML page or in your file with styles (don't forget to include your file on the page in this case)
    .my-first-class {
        /*some styles*/
    .my-second-class {
        /*some styles*/
  • specify the name of the created CSS class (or names of classes separated by spaces) as the value of the css property in the Window configuration:
var dhxWindow = new dhx.Window({
    title: "Window", 
    css:"my-first-class my-second-class"
Back to top