snappymail/dev/Component/Select.js

39 lines
697 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 SelectComponent(oParams)
{
2014-10-29 06:05:50 +08:00
AbstractInput.call(this, oParams);
this.options = oParams.options || '';
this.optionsText = oParams.optionsText || null;
this.optionsValue = oParams.optionsValue || null;
this.defautOptionsAfterRender = Utils.defautOptionsAfterRender;
2014-10-30 23:09:48 +08:00
}
2014-10-29 06:05:50 +08:00
_.extend(SelectComponent.prototype, AbstractInput.prototype);
module.exports = AbstractInput.componentExportHelper(
SelectComponent, 'SelectComponent');
}());