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: