Class CommandItem
Represents an individual command item rendered within the command popup of the SfInlineAIAssist component.
Inherited Members
Namespace: Syncfusion.Blazor.InteractiveChat
Assembly: Syncfusion.Blazor.InteractiveChat.dll
Syntax
public class CommandItem
Remarks
Use this class to define individual command items within the CommandMenu of the SfInlineAIAssist component. Each CommandItem can be configured with an icon, label, prompt, tooltip, and other display options to represent a distinct command action available to the user.
When a CommandItem is selected from the command popup, the associated Prompt text is automatically submitted to the AI engine, enabling one-click AI interactions.
Constructors
CommandItem()
Declaration
public CommandItem()
Properties
Disabled
Gets or sets a value indicating whether the CommandItem is disabled in the SfInlineAIAssist component.
Declaration
public bool Disabled { get; set; }
Property Value
| Type | Description |
|---|---|
| bool | A bool indicating whether the command item is disabled. The default value is false. |
Remarks
This property specifies whether the CommandItem is disabled in the SfInlineAIAssist component.
GroupBy
Gets or sets the group key used to categorize the CommandItem within the SfInlineAIAssist component.
Declaration
public string GroupBy { get; set; }
Property Value
| Type | Description |
|---|---|
| string | A string representing the group key for categorizing the command item. The default value is |
Remarks
Use this property to logically group related CommandItem components together within the command popup.
ID
Gets or sets the unique identifier for the CommandItem in the SfInlineAIAssist component.
Declaration
public string ID { get; set; }
Property Value
| Type | Description |
|---|---|
| string | A string representing the unique identifier of the command item. The default value is |
Remarks
Use this property to assign a unique ID to the CommandItem in the SfInlineAIAssist component.
IconCss
Gets or sets the CSS class used to render the icon for the CommandItem in the SfInlineAIAssist component.
Declaration
public string IconCss { get; set; }
Property Value
| Type | Description |
|---|---|
| string | A string representing the CSS class for the icon. The default value is |
Remarks
This property specifies the CSS class for the icon used in the CommandItem.
Label
Gets or sets the display text for the CommandItem in the SfInlineAIAssist component.
Declaration
public string Label { get; set; }
Property Value
| Type | Description |
|---|---|
| string | A string representing the display text of the command item. The default value is |
Remarks
This property specifies the text for the CommandItem in the SfInlineAIAssist component.
Prompt
Gets or sets the prompt text associated with the CommandItem in the SfInlineAIAssist component.
Declaration
public string Prompt { get; set; }
Property Value
| Type | Description |
|---|---|
| string | A string representing the prompt text submitted to the AI engine when the command item is selected. The default value is |
Remarks
This property specifies the prompt for the CommandItem in the SfInlineAIAssist component.
Tooltip
Gets or sets the tooltip text displayed when hovering over the CommandItem in the SfInlineAIAssist component.
Declaration
public string Tooltip { get; set; }
Property Value
| Type | Description |
|---|---|
| string | A string representing the tooltip text of the command item. The default value is |
Remarks
This property specifies the type for the CommandItem in the SfInlineAIAssist component.