css
Optional. Adds style classes to Menu
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 menu = new dhx.Menu("menu_container", {
css: "custom",
});
</script>
Related sample: Menu. 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 Menu:
const menu = new dhx.Menu("menu_container", {
css: "dhx_widget--bg_white"
});
Related articles: