Skip to main content

css

adds style classes to TimePicker

css?: string;

Example

<style>
.bg-grey {
background: #efefef;
}
</style>

const timepicker = new dhx.Timepicker("timepicker_container", {
css: "dhx_timepicker--bordered bg-grey"
});

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"
});