Class TogglablePreviewNode
Declares a previewable aspect of this plugin.
public sealed class TogglablePreviewNode
- Inheritance
-
TogglablePreviewNode
- Inherited Members
Properties
DisplayName
The name that will be shown to the user. Will be re-invoked on language change.
public Func<string> DisplayName { get; }
Property Value
IsEnabled
public PublishedValue<bool> IsEnabled { get; }
Property Value
Methods
Create(Func<string>, string, bool)
Creates a togglable preview node.
public static TogglablePreviewNode Create(Func<string> displayName, string qualifiedName = null, bool initialState = true)
Parameters
displayName
Func<string>A function which returns the localized display name for this switch
qualifiedName
stringIf not null, a name which will be used to save this configuration
initialState
boolThe initial state for this node; defaults to true