-
Default picker
let datepicker = new When({ input: document.getElementById('...') });
-
Single date picker
let datepicker = new When({ input: document.getElementById('...'), singleDate: true });
-
Simple inline picker
let datepicker = new When({ container: document.getElementById('...'), inline: true });
-
Double picker demo
let datepicker = new When({ container: document.getElementById('...'), inline: true, double: true });
-
Picker with labels demo
let datepicker = new When({ container: document.getElementById('...'), inline: true, labelTo: '至', labelFrom: '从' });