Skip to main content

css

Optional. Adds style classes to TimePicker

css?: string;

Example

<style>
.custom {
--dhx-font-color-primary: #c00;
--dhx-color-primary: #ff5c5c;
}
</style>

<script>
const timepicker = new dhx.Timepicker("timepicker_container", {
css: "custom dhx_widget--bordered"
});
</script>

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

const timepicker = new dhx.Timepicker("timepicker_container", {
css: "dhx_widget--bg-gray"
});

Related articles: