snappymail/dev/Component/TextArea.js

19 lines
479 B
JavaScript
Raw Normal View History

2019-07-05 03:19:24 +08:00
import { componentExportHelper } from 'Component/Abstract';
import { AbstractInput } from 'Component/AbstractInput';
2015-11-15 08:23:16 +08:00
2016-07-06 03:52:52 +08:00
const DEFAULT_ROWS = 5;
2019-07-05 03:19:24 +08:00
class TextAreaComponent extends AbstractInput {
2015-11-15 08:23:16 +08:00
/**
* @param {Object} params
*/
constructor(params) {
super(params);
2016-07-06 03:52:52 +08:00
this.rows = params.rows || DEFAULT_ROWS;
this.spellcheck = undefined === params.spellcheck ? false : !!params.spellcheck;
2015-11-15 08:23:16 +08:00
}
}
2017-03-01 02:44:13 +08:00
export default componentExportHelper(TextAreaComponent, 'TextAreaComponent');