mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-08-30 20:49:20 +03:00
*.jsx -> *.js
This commit is contained in:
parent
0a2b826f71
commit
e88c193334
98 changed files with 341 additions and 340 deletions
23
dev/Component/TextArea.js
Normal file
23
dev/Component/TextArea.js
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
|
||||
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');
|
||||
Loading…
Add table
Add a link
Reference in a new issue