snappymail/dev/Component/TextArea.js

35 lines
612 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
*/
2014-10-30 23:09:48 +08:00
function TextAreaComponent(oParams)
{
2014-10-29 06:05:50 +08:00
AbstractInput.call(this, oParams);
this.rows = oParams.rows || 5;
this.spellcheck = Utils.isUnd(oParams.spellcheck) ? false : !!oParams.spellcheck;
2014-10-30 23:09:48 +08:00
}
2014-10-29 06:05:50 +08:00
_.extend(TextAreaComponent.prototype, AbstractInput.prototype);
module.exports = AbstractInput.componentExportHelper(
TextAreaComponent, 'TextAreaComponent');
}());