snappymail/dev/Component/TextArea.js

35 lines
613 B
JavaScript
Raw Normal View History

2014-10-29 06:05:50 +08:00
(function () {
'use strict';
var
_ = require('_'),
Utils = require('Common/Utils'),
AbstractInput = require('Component/AbstractInput')
2014-10-29 06:05:50 +08:00
;
/**
* @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;
2014-10-29 06:05:50 +08:00
};
_.extend(TextAreaComponent.prototype, AbstractInput.prototype);
module.exports = AbstractInput.componentExportHelper(
TextAreaComponent, 'TextAreaComponent');
}());