mirror of
https://github.com/the-djmaze/snappymail.git
synced 2024-11-15 12:15:20 +08:00
18 lines
437 B
JavaScript
18 lines
437 B
JavaScript
import { componentExportHelper } from 'Component/Abstract';
|
|
import { AbstractInput } from 'Component/AbstractInput';
|
|
|
|
const DEFAULT_ROWS = 5;
|
|
|
|
class TextAreaComponent extends AbstractInput {
|
|
/**
|
|
* @param {Object} params
|
|
*/
|
|
constructor(params) {
|
|
super(params);
|
|
|
|
this.rows = params.rows || DEFAULT_ROWS;
|
|
this.spellcheck = !!params.spellcheck;
|
|
}
|
|
}
|
|
|
|
export default componentExportHelper(TextAreaComponent, 'TextAreaComponent');
|