mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2026-11-04 21:47:22 +00:00
14 lines
352 B
C#
14 lines
352 B
C#
using Microsoft.AspNetCore.Components;
|
|
|
|
namespace AIStudio.Tools;
|
|
|
|
public static class ElementReferenceExtensions
|
|
{
|
|
extension(ElementReference elementReference)
|
|
{
|
|
public async ValueTask ScrollIntoViewAsync(IJSRuntime jsRuntime)
|
|
{
|
|
await jsRuntime.InvokeVoidAsync("scrollToBottom", elementReference);
|
|
}
|
|
}
|
|
} |