mirror of
https://github.com/frappe/books.git
synced 2024-12-24 11:55:46 +00:00
14 lines
327 B
JavaScript
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; |