mirror of
https://github.com/the-djmaze/snappymail.git
synced 2024-11-15 12:15:20 +08:00
1423b88839
Added material design checkbox component Added lang changing animation
34 lines
613 B
JavaScript
34 lines
613 B
JavaScript
|
|
(function () {
|
|
|
|
'use strict';
|
|
|
|
var
|
|
_ = require('_'),
|
|
|
|
Utils = require('Common/Utils'),
|
|
|
|
AbstractInput = require('Component/AbstractInput')
|
|
;
|
|
|
|
/**
|
|
* @constructor
|
|
*
|
|
* @param {Object} oParams
|
|
*
|
|
* @extends AbstractInput
|
|
*/
|
|
function TextAreaComponent(oParams) {
|
|
|
|
AbstractInput.call(this, oParams);
|
|
|
|
this.rows = oParams.rows || 5;
|
|
this.spellcheck = Utils.isUnd(oParams.spellcheck) ? false : !!oParams.spellcheck;
|
|
};
|
|
|
|
_.extend(TextAreaComponent.prototype, AbstractInput.prototype);
|
|
|
|
module.exports = AbstractInput.componentExportHelper(
|
|
TextAreaComponent, 'TextAreaComponent');
|
|
|
|
}());
|