Table of Contents

Struct CommandModel

Namespace
The.Web.Pages
Assembly
Instagile.Web.Client.dll
public record struct CommandModel : IEquatable<CommandModel>
Implements
Inherited Members

Constructors

CommandModel(string, ButtonTier, MessageLevel?, string, string?, KeyboardShortcut?, bool, bool, Func<Task>, bool)

public CommandModel(string Key, ButtonTier Tier, MessageLevel? Level, string Label, string? Icon, KeyboardShortcut? Shortcut, bool IsVisible, bool CanExecute, Func<Task> ExecuteAsync, bool IsExecuting = false)

Parameters

Key string
Tier ButtonTier
Level MessageLevel?
Label string
Icon string
Shortcut KeyboardShortcut
IsVisible bool
CanExecute bool
ExecuteAsync Func<Task>
IsExecuting bool

Properties

CanExecute

public bool CanExecute { readonly get; set; }

Property Value

bool

ExecuteAsync

public Func<Task> ExecuteAsync { readonly get; set; }

Property Value

Func<Task>

Icon

public string? Icon { readonly get; set; }

Property Value

string

IsExecuting

public bool IsExecuting { readonly get; set; }

Property Value

bool

IsVisible

public bool IsVisible { readonly get; set; }

Property Value

bool

Key

public string Key { readonly get; set; }

Property Value

string

Label

public string Label { readonly get; set; }

Property Value

string

Level

public MessageLevel? Level { readonly get; set; }

Property Value

MessageLevel?

Shortcut

public KeyboardShortcut? Shortcut { readonly get; set; }

Property Value

KeyboardShortcut

Tier

public ButtonTier Tier { readonly get; set; }

Property Value

ButtonTier