A RetroSearch Logo

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

Search Query:

Showing content from https://docs.dhtmlx.com/suite/slider/api/slider_css_config/ below:

JavaScript Slider - css Config

css

Optional. Adds style classes for the component

css?: string;

Example​
<style>
.custom {
--dhx-color-primary: #118d8d;
}
</style>

<script>
const slider = new dhx.Slider("slider_container", {
css: "custom"
});
</script>

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

const slider = new dhx.Slider("slider_container", {
css: "dhx_widget--bg_white"
});

Related articles:

Previous

Slider properties

Next

helpMessage


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