Dynamic Options
Change options of a live picker with setOptions(). This page documents @pglejzer/datepicker-ui, the companion of timepicker-ui.
setOptions()
#picker.setOptions(patch) merges a partial options object into the current options and applies it, then emits update. Use the buttons to change the theme, the selection mode and the number of months, and open the picker to see the result.
Theme
Mode
Months
Note
Changing
calendar.mode with setOptions() empties the selection. The width for calendar.months is read when the picker opens and on setOptions().