2
0
mirror of https://github.com/frappe/books.git synced 2024-12-25 20:11:15 +00:00
books/client/view/controls/text.js

14 lines
347 B
JavaScript
Raw Normal View History

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