Skip to main content

css

Optional. Adds style classes for the component

css?: string;

Example‚Äč

<style>
.custom {
--dhx-background-primary: #efefef;
}
</style>

<script>
const dhxWindow = new dhx.Window({
height: 400,
width: 400,
title: "window",
css: "custom",
html,
});

dhxWindow.show();
</script>

Related sample: Window. Styling (custom CSS)

Note, that the DHTMLX library provides a set of own CSS classes that you can also apply to change the appearance of Window:

const dhxWindow = new dhx.Window({
title: "Window",
css:"dhx_window--bordered"
});

dhxWindow.show();

Related articles: