14 lines
327 B
C#
14 lines
327 B
C#
using Microsoft.AspNetCore.Components;
|
|
using Microsoft.JSInterop;
|
|
|
|
namespace REMAN
|
|
{
|
|
public static class JsFunctions
|
|
{
|
|
public static async Task FocusAsync(this ElementReference elementRef, IJSRuntime jsRuntime)
|
|
{
|
|
await jsRuntime.InvokeVoidAsync("Js.focus", elementRef);
|
|
}
|
|
}
|
|
}
|