Optional
Readonly
allowedAllowed values for this setting. Specific values may be provided, or an object of
"choice objects": value mapped by the choice label (to be used to get the choice
text from i18n, e.g. deputy.setting.user.<group>.<name>.choice.<choice>
). When an array is
passed, the key to be used for i18n is equal to the result of the allowed value's toString
function.
When using allowedValues, as much as possible use primitive types as the deserialized
type, since indexOf
is used to check if a value is allowed, which may not work properly
for class instances or objects.
Readonly
defaultThe default value of the setting.
Optional
Readonly
deserializeParse a serialized value into a deserialized one.
Optional
Readonly
displayDisplay options for this setting when showing up on settings interfaces.
Readonly
isOptional
config: UserConfigurationif this option is disabled or not.
Readonly
isOptional
config: UserConfigurationif this option is hidden or not.
Optional
Readonly
serializeSerialize this setting's value or a given value.
Static
Readonly
basicThe current value of this setting.
Parses a given raw value and mutates the setting.
The raw value to parse.
The new value.
Sets the value and performs validation. If the input is an invalid value, and
throwOnInvalid
is false, the value will be reset to default.
Refers to a specific setting on the configuration. Should be initialized with a raw (serialized) type and an actual (deserialized) type.
This is used for both client and wiki-wide configuration.