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
|
|
|
|
*/
|
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;
|
2014-10-30 05:08:53 +08:00
|
|
|
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');
|
|
|
|
|
|
|
|
}());
|