2
0
mirror of https://github.com/frappe/books.git synced 2024-11-10 15:50:56 +00:00
books/client/view/controls/date.js

14 lines
327 B
JavaScript
Raw Normal View History

2018-02-14 12:50:56 +00:00
const flatpickr = require('flatpickr');
const BaseControl = require('./base');
class DateControl extends BaseControl {
make() {
super.make();
this.input.setAttribute('type', 'text');
flatpickr.default(this.input, {
dateFormat: "Y-m-d"
});
}
};
module.exports = DateControl;