Class BooleanSettingDescriptor
Descriptor for a boolean toggle setting. Rendered as a checkbox.
Inherited Members
Namespace: Zaya.Primitives
Assembly: Zaya.Primitives.dll
Syntax
public sealed class BooleanSettingDescriptor : SettingDescriptor
Constructors
| Edit this page View SourceBooleanSettingDescriptor(string, LocalizedString)
Initializes a new instance of the BooleanSettingDescriptor class.
Declaration
public BooleanSettingDescriptor(string key, LocalizedString displayName)
Parameters
| Type | Name | Description |
|---|---|---|
| string | key | Machine-readable key for this setting. |
| LocalizedString | displayName | Localizable UI label. |
Properties
| Edit this page View SourceDefaultValue
Gets or sets the default boolean state.
Declaration
public bool DefaultValue { get; init; }
Property Value
| Type | Description |
|---|---|
| bool |