Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Definition
Namespace: Microsoft.CommandPalette.Extensions.Toolkit
Inherits CommandItem
Implements IListItem
The ListItem class represents an item in a list. It is used to display items in the command palette and provides properties and methods for managing the item's appearance and behavior.
Constructors
| Constructor | Description |
|---|---|
| ListItem(ICommand) | Initializes a new instance of the ListItem class with the specified command. |
| ListItem(ICommandItem) | Initializes a new instance of the ListItem class with the specified command item. |
Properties
| Property | Type | Description |
|---|---|---|
| Details | IDetails | Provides additional details about the item. |
| Section | String | The section to which the item belongs. This property is used to group items in the list. |
| Tags | ITag[] | The tags associated with the item. Tags are used to categorize items and can be used for filtering. |
| TextToSuggest | String | The text to suggest for the item. This property is used to provide suggestions for the item when the user types in the command palette. |
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.
Windows developer