css
Optional. Adds style classes to Calendar
css?: string;
Example
<style>
.custom {
--dhx-color-primary: #118d8d;
}
</style>
<script>
const calendar = new dhx.Calendar("calendar_container", {
css: "custom dhx_widget--bordered"
});
</script>
Related sample: Calendar. 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 Calendar:
const calendar = new dhx.Calendar("calendar_container", {
css: "dhx_widget--bg_white dhx_widget--bordered"
});
Related articles: