qz-date
v1.3.0
Published
native js mobile datepicker | timepicker
Downloads
1
Maintainers
Readme
qz-date
About
qz-date is based on the native JS implementation of the mobile date and time plug-in, does not rely on any framework.
Get start
qz-date the most basic application is the usual year, month and day options, the following is its html structure.
<input id="demo" type="text" readonly placeholder="Please select a date!">
The simplest initialization code is as follow:
import qzDate from 'qz-date'
const demo = document.querySelector('#demo')
const datePicker = new qzDate(demo)
Maybe you hope so:
import qzDate from 'qz-date'
const datePicker = new qzDate('#demo')
Options
type
Picker type, support date || Y || YM || MD || time || all
min_date
Minimum date, support XXXX-XX-XX, default 1970-01-01
max_date
Maximum date, support XXXX-XX-XX, default 2049-12-31
value
Init date
callback
Confirm the callback function.
theme
Test Option.
© 2017 qingzhan Licensed under MIT