UNPKG

@manuth/woltlab-compiler

Version:

A compiler for generating WoltLab-Package `.tar` Archives and other WoltLab-Package Components

79 lines 2.09 kB
import { Option } from "../Option.js"; /** * Represents an option for the control-panel. */ export class ACPOption extends Option { /** * Initializes a new instance of the {@link ACPOption `ACPOption`} class. * * @param category * The category of the option. * * @param options * The options of the acp-option. */ constructor(category, options) { super(category, options); /** * A value indicating whether the option is visible. */ this.visible = true; /** * A value indicating whether the option is localizable. */ this.localizable = false; /** * A value indicating whether to force localization. */ this.forceLocalization = false; if ((options.Visible !== null) && (options.Visible !== undefined)) { this.Visible = options.Visible; } if ((options.Localizable !== null) && (options.Localizable !== undefined)) { this.Localizable = options.Localizable; } if ((options.ForceLocalization !== null) && (options.ForceLocalization !== undefined)) { this.ForceLocalization = options.ForceLocalization; } } /** * Gets or sets a value indicating whether the option is visible. */ get Visible() { return this.visible; } /** * @inheritdoc */ set Visible(value) { this.visible = value; } /** * Gets or sets a value indicating whether the option is localizable. */ get Localizable() { return this.localizable; } /** * @inheritdoc */ set Localizable(value) { this.localizable = value; } /** * Gets or sets a value indicating whether to force localization. */ get ForceLocalization() { return this.forceLocalization; } /** * @inheritdoc */ set ForceLocalization(value) { this.forceLocalization = value; } } //# sourceMappingURL=ACPOption.js.map