Plugins
On this page
Introduction
Plugins allow you to extend the picker by adding new functionality to either Tempus Dominus globally, a single picker or by overwriting existing functionality.
Creating plugins
There are a few examples in the source like this
Using a plugin
Globally
Using a plugin is easy. Load the plugin script file after you load Tempus Dominus
You can also use import the plugins instead.
Per instance
Plugins can also be loaded per picker.
Per Instance Overwrites
It is possible to overwrite specific functions per picker instances as well. For instance:
The code above would affect a single picker but not globally. You could easily adapt this code to have a common formatting function taking in a format string.