A RetroSearch Logo

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

Search Query:

Showing content from https://docs.dhtmlx.com/suite/message/customization/ below:

JavaScript Message - Customization | DHTMLX Suite 9 Docs

Customization

There is a possibility to make changes in the look and feel of a message box or a tooltip. You can either create a new CSS class or use a CSS class that DHTMLX library provides.

Using new CSS classes​

To use a new CSS class you need to take the following steps:

<style>
.my_first_class {

}

.my_second_class {

}
</style>
dhx.message({
css:"my_first_class my_second_class"
});

For example:

<style>
.custom {
--dhx-font-color-primary: var(--dhx-color-white);
--dhx-background-primary: var(--dhx-color-primary);
--dhx-font-size-normal: 16px;
}
</style>

<script>
dhx.message({
text: "Here is dhtmlxMessage",
icon: "dxi dxi-close",
css: "custom"
});
</script>

Related sample: Message. Message styling (custom CSS)

Related sample: Message. Alert styling (custom CSS)

Related sample: Message. Confirm styling (custom CSS)

Using default CSS classes​

The DHTMLX library provides a set of own CSS classes that you can apply to change the appearance either of a message box or a tooltip.

dhx.message({
css:"dhx_widget--bg_gray"
});

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