mirror of
https://github.com/DrMboga/WotBlitzStatisticsBlazor.git
synced 2026-10-21 18:37:18 +02:00
16 lines
354 B
C#
16 lines
354 B
C#
using Microsoft.JSInterop;
|
|||
|
|
using System.Threading.Tasks;
|
||
|
|
|
||
|
|
namespace WotBlitzStatisticsPro.UI
|
||
|
|
{
|
||
|
|
public class ExampleJsInterop
|
||
|
|
{
|
||
|
|
public static ValueTask<string> Prompt(IJSRuntime jsRuntime, string message)
|
||
|
|
{
|
||
|
|
// Implemented in exampleJsInterop.js
|
||
|
|
return jsRuntime.InvokeAsync<string>(
|
||
|
|
"exampleJsFunctions.showPrompt",
|
||
|
|
message);
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|