2014-10-29 06:05:50 +08:00
|
|
|
|
|
|
|
(function () {
|
|
|
|
|
|
|
|
'use strict';
|
|
|
|
|
|
|
|
var
|
|
|
|
_ = require('_'),
|
|
|
|
|
|
|
|
Utils = require('Common/Utils'),
|
|
|
|
|
2014-10-30 05:08:53 +08:00
|
|
|
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;
|
2014-10-30 05:08:53 +08:00
|
|
|
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');
|
|
|
|
|
|
|
|
}());
|