UNPKG

woltlab-compiler

Version:

A compiler for WoltLab-Package Archives and WoltLab-Package Components

65 lines 1.94 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const util_1 = require("util"); const Option_1 = require("../Option"); /** * Represents an option for the control-panel. */ class ACPOption extends Option_1.Option { /** * Initializes a new instance of the `ACPOption` class. */ 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 (!util_1.isNullOrUndefined(options.Visible)) { this.Visible = options.Visible; } if (!util_1.isNullOrUndefined(options.Localizable)) { this.Localizable = options.Localizable; } if (!util_1.isNullOrUndefined(options.ForceLocalization)) { this.ForceLocalization = options.ForceLocalization; } } /** * Gets or sets a value indicating whether the option is visible. */ get Visible() { return this.visible; } set Visible(value) { this.visible = value; } /** * Gets or sets a value indicating whether the option is localizable. */ get Localizable() { return this.localizable; } set Localizable(value) { this.localizable = value; } /** * Gets or sets a value indicating whether to force localization. */ get ForceLocalization() { return this.forceLocalization; } set ForceLocalization(value) { this.forceLocalization = value; } } exports.ACPOption = ACPOption; //# sourceMappingURL=ACPOption.js.map