css
Optional. Adds style classes to Toolbar
css?: string;
Example
<style>
.custom,.custom--popup-menu {
--dhx-background-primary: #3A434A;
--dhx-background-secondary: #5a6872;
--dhx-background-additional: #5a6872;
--dhx-s-toolbar-background: var(--dhx-background-primary);
--dhx-color-primary: #118d8d;
--dhx-color-primary-hover: #49e9e9;
--dhx-color-primary-active: #49e9e9;
--dhx-font-color-primary: #fff;
--dhx-font-color-secondary: #fff;
--dhx-font-color-additional: #fff;
}
</style>
<script>
const toolbar = new dhx.Toolbar("toolbar", {
css: "custom"
});
</script>
Note, that the DHTMLX library provides a set of own CSS classes that you can also apply to change the appearance of Toolbar:
const toolbar = new dhx.Toolbar("toolbar_container", {
css: "dhx_widget--bg-gray"
});
Related articles: