mirror of
https://github.com/the-djmaze/snappymail.git
synced 2024-11-15 12:15:20 +08:00
20 lines
558 B
JavaScript
20 lines
558 B
JavaScript
import { i18n } from 'Common/Translator';
|
|
import { defaultOptionsAfterRender } from 'Common/Utils';
|
|
import { AbstractInput } from 'Component/AbstractInput';
|
|
|
|
export class SelectComponent extends AbstractInput {
|
|
/**
|
|
* @param {Object} params
|
|
*/
|
|
constructor(params) {
|
|
super(params);
|
|
|
|
this.options = params.options || '';
|
|
|
|
this.optionsText = params.optionsText || null;
|
|
this.optionsValue = params.optionsValue || null;
|
|
this.optionsCaption = i18n(params.optionsCaption || null);
|
|
|
|
this.defaultOptionsAfterRender = defaultOptionsAfterRender;
|
|
}
|
|
}
|