A RetroSearch Logo

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

Search Query:

Showing content from https://docs.dhtmlx.com/suite/timepicker/customization/ below:

Website Navigation


JavaScript Timepicker - Customization | DHTMLX Suite 9 Docs

Customization Styling​

There is a possibility to make changes in the look and feel of a timepicker.

Related sample: Timepicker. Styling (custom CSS)

For this you need to take the following steps:

<style>
.my-first-class {
/*some styles*/
}

.my-second-class {
/*some styles*/
}
</style>
const timepicker = new dhx.Timepicker("timepicker_container", { 
css:"my-first-class my-second-class"
});

For 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>

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