Skip to main content

css

Description

Optional. Applies a custom CSS class

info

The custom CSS class applies to expanded elements as well. The --popup-menu prefix is attached to such elements.

Usage

css?: string;

Example

const editor = new dhx.DiagramEditor("editor_container", {
type: "default",
view: {
// toolbar: true, // displays default Toolbar
// or configure Toolbar via object
toolbar: {
css: "custom_css",
items: ["file", "spacer", "scale"],
navigationType: "pointer"
}
}
});

Change log: Added in v6.0

Related articles: Toolbar configuration