PaletteCommand
Namespace: Wisej.Web
Assembly: Wisej.Framework (4.2.0.0)
Describes a searchable command or record in a CommandPalette.
- C#
- VB.NET
public class PaletteCommand : INotifyPropertyChanged
Public Class PaletteCommand
Inherits 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
PaletteCommand()
Initializes a new instance of PaletteCommand.
Properties
Category
String: Gets or sets category heading used to group results. (Default: "")
Description
String: Gets or sets plain-text secondary description. (Default: "")
Enabled
Boolean: Gets or sets whether this command can be executed. (Default: True)
Icon
String: Gets or sets image URL or theme image name. (Default: "")
Keywords
String: Gets or sets additional search terms separated by spaces. (Default: "")
Shortcut
String: Gets or sets display-only shortcut hint; application code owns the actual shortcut. (Default: "")
Tag
Object: Gets or sets application data retained only on the server. (Default: null)
Text
String: Gets or sets plain-text command title. (Default: "")
Events
PropertyChanged
PropertyChangedEventHandler Occurs after a property changes.