DxAIChat.HideLoadingIndicatorAsync() Method
Hides the loading indicator in the chat message area.
Namespace: DevExpress.AIIntegration.Blazor.Chat
Assembly: DevExpress.AIIntegration.Blazor.Chat.v26.1.dll
Declaration
public Task HideLoadingIndicatorAsync()
Returns
| Type | Description |
|---|---|
| Task | The task completed when the loading indicator is hidden. |
Remarks
Call HideLoadingIndicatorAsync to remove the loading indicator displayed with ShowLoadingIndicatorAsync. After the loading indicator is removed, the component accepts new messages sent with the SendMessageAsync method.
If no loading indicator is displayed, this method has no effect.
The following code snippet hides the loading indicator after it fetches additional context in the MessageSending event handler:
<DxAIChat MessageSending="OnMessageSending" />
@code {
async Task OnMessageSending(MessageSendingEventArgs args) {
await args.Chat.ShowLoadingIndicatorAsync("Fetching additional context...");
await Task.Delay(2000);
await args.Chat.HideLoadingIndicatorAsync();
}
}

Implements
See Also