mirror of
https://github.com/the-djmaze/snappymail.git
synced 2025-01-06 14:58:19 +08:00
21 lines
476 B
React
21 lines
476 B
React
|
|
||
|
import Utils from 'Common/Utils';
|
||
|
import {componentExportHelper} from 'Component/Abstract';
|
||
|
import {AbstractInput} from 'Component/AbstractInput';
|
||
|
|
||
|
class TextAreaComponent extends AbstractInput
|
||
|
{
|
||
|
/**
|
||
|
* @param {Object} params
|
||
|
*/
|
||
|
constructor(params) {
|
||
|
|
||
|
super(params);
|
||
|
|
||
|
this.rows = params.rows || 5;
|
||
|
this.spellcheck = Utils.isUnd(params.spellcheck) ? false : !!params.spellcheck;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
module.exports = componentExportHelper(TextAreaComponent, 'TextAreaComponent');
|