mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-07-11 00:14:50 +03:00
*.jsx -> *.js
This commit is contained in:
parent
0a2b826f71
commit
e88c193334
98 changed files with 341 additions and 340 deletions
32
dev/Component/Select.js
Normal file
32
dev/Component/Select.js
Normal file
|
|
@ -0,0 +1,32 @@
|
|||
|
||||
import {i18n} from 'Common/Translator';
|
||||
import {defautOptionsAfterRender} from 'Common/Utils';
|
||||
import {componentExportHelper} from 'Component/Abstract';
|
||||
import {AbstractInput} from 'Component/AbstractInput';
|
||||
|
||||
class SelectComponent extends AbstractInput
|
||||
{
|
||||
/**
|
||||
* @constructor
|
||||
* @param {Object} params
|
||||
*/
|
||||
constructor(params) {
|
||||
|
||||
super(params);
|
||||
|
||||
this.options = params.options || '';
|
||||
|
||||
this.optionsText = params.optionsText || null;
|
||||
this.optionsValue = params.optionsValue || null;
|
||||
this.optionsCaption = params.optionsCaption || null;
|
||||
|
||||
if (this.optionsCaption)
|
||||
{
|
||||
this.optionsCaption = i18n(this.optionsCaption);
|
||||
}
|
||||
|
||||
this.defautOptionsAfterRender = defautOptionsAfterRender;
|
||||
}
|
||||
}
|
||||
|
||||
module.exports = componentExportHelper(SelectComponent, 'SelectComponent');
|
||||
Loading…
Add table
Add a link
Reference in a new issue