Skip to main content
Version: 4.2

PaletteCommand

Namespace: Wisej.Web

Assembly: Wisej.Framework (4.2.0.0)

Describes a searchable command or record in a CommandPalette.

public class PaletteCommand : INotifyPropertyChanged

Registered commands belong to one collection. Server query results may also contain unregistered commands. Tag is never sent to the browser. Text and descriptions are displayed literally.

Example:

palette.Commands.Add(new PaletteCommand { Text = "Restart server", Category = "Actions", Tag = serverId });

Constructors​

Instance member PaletteCommand()​

Initializes a new instance of PaletteCommand.

Properties​

Instance member Category​

String: Gets or sets category heading used to group results. (Default: "")

Instance member Description​

String: Gets or sets plain-text secondary description. (Default: "")

Instance member Enabled​

Boolean: Gets or sets whether this command can be executed. (Default: True)

Instance member Icon​

String: Gets or sets image URL or theme image name. (Default: "")

Instance member Keywords​

String: Gets or sets additional search terms separated by spaces. (Default: "")

Instance member Shortcut​

String: Gets or sets display-only shortcut hint; application code owns the actual shortcut. (Default: "")

Instance member Tag​

Object: Gets or sets application data retained only on the server. (Default: null)

Instance member Text​

String: Gets or sets plain-text command title. (Default: "")

Events​

Instance member PropertyChanged​

PropertyChangedEventHandler Occurs after a property changes.