22 lines
490 B
JavaScript
Executable File
22 lines
490 B
JavaScript
Executable File
import datepicker from '../src/datepicker'
|
|
import './sandbox.css'
|
|
|
|
// Enable us to play with datepicker in the console.
|
|
window.datepicker = datepicker
|
|
|
|
window.test = () => {
|
|
window.start = datepicker('[data-cy="daterange-input-start"]', {
|
|
id: 1,
|
|
alwaysShow: 0,
|
|
})
|
|
window.end = datepicker('[data-cy="daterange-input-end"]', {
|
|
id: 1,
|
|
alwaysShow: 0,
|
|
})
|
|
|
|
window.single = datepicker('input', {
|
|
alwaysShow: 0,
|
|
defaultView: 'overlay',
|
|
})
|
|
}
|