2
0
mirror of https://github.com/frappe/books.git synced 2025-02-04 04:58:30 +00:00

14 lines
347 B
JavaScript
Raw Normal View History

2018-01-12 17:55:07 +05:30
const BaseControl = require('./base');
2018-02-09 18:25:55 +05:30
const frappe = require('frappejs');
2018-01-12 17:55:07 +05:30
class TextControl extends BaseControl {
2018-02-08 17:15:32 +05:30
makeInput() {
2018-02-14 18:20:56 +05:30
this.input = frappe.ui.add('textarea', 'form-control', this.getInputParent());
2018-01-12 17:55:07 +05:30
}
make() {
super.make();
this.input.setAttribute('rows', '8');
}
};
module.exports = TextControl;