mirror of
https://github.com/the-djmaze/snappymail.git
synced 2025-01-04 14:02:17 +08:00
38 lines
697 B
JavaScript
38 lines
697 B
JavaScript
|
|
(function () {
|
|
|
|
'use strict';
|
|
|
|
var
|
|
_ = require('_'),
|
|
|
|
Utils = require('Common/Utils'),
|
|
|
|
AbstractInput = require('Component/AbstractInput')
|
|
;
|
|
|
|
/**
|
|
* @constructor
|
|
*
|
|
* @param {Object} oParams
|
|
*
|
|
* @extends AbstractInput
|
|
*/
|
|
function SelectComponent(oParams)
|
|
{
|
|
AbstractInput.call(this, oParams);
|
|
|
|
this.options = oParams.options || '';
|
|
|
|
this.optionsText = oParams.optionsText || null;
|
|
this.optionsValue = oParams.optionsValue || null;
|
|
|
|
this.defautOptionsAfterRender = Utils.defautOptionsAfterRender;
|
|
}
|
|
|
|
_.extend(SelectComponent.prototype, AbstractInput.prototype);
|
|
|
|
module.exports = AbstractInput.componentExportHelper(
|
|
SelectComponent, 'SelectComponent');
|
|
|
|
}());
|