mirror of
https://github.com/the-djmaze/snappymail.git
synced 2024-12-31 03:52:01 +08:00
ea48f5060b
isUnd(*) to native undefined === * isFunc to native typeof * === 'function' isObject to native typeof * === 'object' microtime() to native Date().getTime(); noop to native ()=>{} noopFalse to native ()=>false noopTrue to native ()=>true boolToAjax to native *?'1':'0' Underscore.js to native
18 lines
479 B
JavaScript
18 lines
479 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 = undefined === params.spellcheck ? false : !!params.spellcheck;
|
|
}
|
|
}
|
|
|
|
export default componentExportHelper(TextAreaComponent, 'TextAreaComponent');
|