mirror of
https://github.com/the-djmaze/snappymail.git
synced 2025-01-05 22:42:25 +08:00
23 lines
525 B
JavaScript
23 lines
525 B
JavaScript
|
|
import {isUnd} from 'Common/Utils';
|
|
import {componentExportHelper} from 'Component/Abstract';
|
|
import {AbstractInput} from 'Component/AbstractInput';
|
|
|
|
const DEFAULT_ROWS = 5;
|
|
|
|
class TextAreaComponent extends AbstractInput
|
|
{
|
|
/**
|
|
* @constructor
|
|
* @param {Object} params
|
|
*/
|
|
constructor(params) {
|
|
|
|
super(params);
|
|
|
|
this.rows = params.rows || DEFAULT_ROWS;
|
|
this.spellcheck = isUnd(params.spellcheck) ? false : !!params.spellcheck;
|
|
}
|
|
}
|
|
|
|
module.exports = componentExportHelper(TextAreaComponent, 'TextAreaComponent');
|