For the sake of the following documentation, assume there's a picker setup like this:
const picker = new tempusdominus
    .TempusDominus(document.getElementById('datetimepicker1'));

toggle

Shows or hides the widget

Emits

show

Shows the widget

Emits

hide

Hides the widget

Emits

paint(Unit | 'decade', DateTime, string[], HTMLElement)

Allows developers to add/remove classes from an element. During the grid generation code, this function is called.

It provides the unit that is being generated (i.e. displaying the main date view), the date time object being effected, the current set of css classes and the container element.

Check out the example paint plugin.

Display Functions 08/14/2022 08/14/2022 How to use Tempus Dominus datetime picker datepicker, javascript, open source, tempus dominus, eonasdan