Skip to main content

css

Optional. Adds style classes to Ribbon

css?: string;

Example‚Äč

<style>
.custom {
--dhx-background-secondary: var(--dhx-color-white);
--dhx-color-primary-light-hover: #aefafa;
--dhx-color-primary-light-active: #118d8d;
}
</style>

<script>
const ribbon = new dhx.Ribbon("ribbon_container", {
css: "custom dhx_widget--bordered"
});
</script>

Related sample: Ribbon. 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 Ribbon.

const ribbon = new dhx.Ribbon("ribbon_container", {
css: "dhx_widget--bg_white"
});

Related articles: