mirror of
https://github.com/DrMboga/WotBlitzStatisticsBlazor.git
synced 2026-10-21 18:37:18 +02:00
Blazor server and client apps. With data service mocks
This commit is contained in:
1 parent
1fa0b03555
commit
a0ad7ca395
68 files changed
+1893
No files matched your search
@@ -0,0 +1,16 @@
|
||||
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);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user