Clear Button
Reset time selection with a dedicated clear button
Enable Clear Button
#The clear button is off by default. Turn it on with ui.clearButton: true:
Disabled Clear Button
#Hide the clear button (this is the default):
Keep Input Value on Clear
#Clear the clock state but keep the input value, with the object form of ui.clearButton:
Custom Label
#Use a custom label for the clear button:
Clear from Code
#picker.clear() works with the button hidden, open or closed. It emits clear, makes no screen reader announcement and does not move focus. New in 4.7.0.
With Clear Callback
#Handle the clear event via callback: