A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://docs.dhtmlx.com/suite/css_manager/api/cssmanager_add_method/ below:

JavaScript CSS Manager - add Method


const cssClassName = dhx.cssManager.add({
display: "flex";
flexDirection: "column"
});

const block = document.createElement("div");
block.classList.add(cssClassName);



dhx.cssManager.add({
display: "flex";
flexDirection: "column"
}, "myCustomClass");

const block = document.createElement("div");
block.classList.add("myCustomClass");

The new created styles will be added to the <head> section of the HTML document.

If the silent parameter is set to true, you need to use the update() method after add to apply the made changes to the HTML page.


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4