2
0
mirror of https://github.com/frappe/books.git synced 2024-09-20 11:29:00 +00:00
books/client/view/controls/date.js
2018-02-14 18:20:56 +05:30

14 lines
327 B
JavaScript

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;