New to Telerik UI for Blazor? Download Free 30-day trial
Chat - Actions and Suggestions
- EXAMPLE
- VIEW SOURCE
- EDIT IN TELERIK REPL
- Change Theme
default
Configurator
Suggested Actions
Suggestions
- Actions-suggestions.razor
- Author.cs
- Message.cs
Loading the demo source code...please wait.
Description
The Telerik Chat component for Blazor allows you to define actions and suggestions that can optionally be related to specific chat messages and users.
- Suggested Actions are associated with specific messages. They appear under the message only if it's currently the last one in the Chat. On click, their
Textis automatically added as a new message and the Chat firesOnSendMessage. - Suggestions are visible between the message area and the TextArea. They are not related to a specific message, so they are always visible if defined. On click, their
Textis automatically added to the Chat TextArea, but not sent. The component fires anOnSuggestionClickevent. - Context Menu Actions can be defined separately for the author's and the receivers' messages. You can also use a single configuration for all messages. Context menu actions expose an
OnClickevent. - Toolbar actions are another option to define user actions that are available for author messages, recipient messages, or both. Toolbar actions expose an
OnClickevent.
The suggestions and the suggested actions can wrap or display on a single scrollable line.
This Blazor Chat Actions and Suggestions example is part of a unique collection of hundreds of Blazor demos, with which you can see all Telerik UI for Blazor components and their features in action. View the source code of the demos from the library or directly adapt, and edit them and their theme appearance in Telerik REPL for Blazor or ThemeBuilder.