blazor-devexpress-dot-aiintegration-dot-blazor-dot-chat-dot-dxaichatpromptsuggestion-31c3e705.md
Specifies what happens when you click a search suggestion: instantly send it to chat or place it in the prompt box.
Namespace : DevExpress.AIIntegration.Blazor.Chat
Assembly : DevExpress.AIIntegration.Blazor.Chat.v25.2.dll
NuGet Package : DevExpress.AIIntegration.Blazor.Chat
[DefaultValue(false)]
[Parameter]
public bool SendOnClick { get; set; }
| Type | Default | Description |
|---|---|---|
| Boolean | false |
Specifies what happens when you click a search suggestion: instantly send it to chat or place it in the prompt box.
|
Enable the SendOnClick property of the DxAIChatPromptSuggestion to instantly send the message from the corresponding suggestion bubble to the chat upon click.
Disable the property to insert the message to the chat prompt box. It allows the user to edit text and send it manually.
@using DevExpress.AIIntegration.Blazor.Chat
<DxAIChat>
<PromptSuggestions>
<DxAIChatPromptSuggestion Title="Tell me a joke"
Text="Take a break and enjoy a quick laugh"
PromptMessage="Tell me a joke about AI."
SendOnClick="true" />
<DxAIChatPromptSuggestion Title="Summarize text"
Text="Extract a quick summary (main ideas)"
PromptMessage="Summarize the following text:"
SendOnClick="false" />
</PromptSuggestions>
</DxAIChat>
See Also
DxAIChatPromptSuggestion Class