public MostrarMensajes(IJSRuntime js) { this.js = js; }
public FileReaderJsInterop(IJSRuntime jsRuntime, IInvokeUnmarshalled invokeUnmarshalled) { CurrentJSRuntime = jsRuntime; InvokeUnmarshalled = invokeUnmarshalled; }
public GlobalMouseEventHandler(IJSRuntime jsRuntime) { _jsRuntime = jsRuntime; _dotNetObjectReferences = new List <DotNetObjectReference <PageMouseEventInfo> >(); }
// Invoke any registered event handler with an instance of the JS // runtime which can be used by any interop proxies or surrogates internal virtual void FirePrepareForInterop(IJSRuntime js) { var ev = new PrepareForInteropEventArgs(js); PrepareForInterop?.Invoke(this, ev); }
public FlyoutPanelService(IJSRuntime jsRuntime) { _jsRuntime = jsRuntime; }
public static async ValueTask MyFunction(this IJSRuntime js, string message) { await js.InvokeVoidAsync("my_function", message); }
public static ValueTask <string> GetFromLocalStorage(this IJSRuntime js, string key) => js.InvokeAsync <string>("localStorage.getItem", key);
public static async ValueTask LogToConsole(this IJSRuntime js, string message) { await js.InvokeVoidAsync("console.log", message); }
public UserCustomAuthenticationStateProvider(IJSRuntime jsRuntime, IUserService userService) { this.jsRuntime = jsRuntime; this.userService = userService; }
public PopoverInterop(IJSRuntime jsRuntime) { Ensure.NotNull(jsRuntime, "jsRuntime"); this.jsRuntime = jsRuntime; }
public static async ValueTask InitializeInactivityTimer <T>(this IJSRuntime js, DotNetObjectReference <T> dotNetObjectReference) where T : class { await js.InvokeVoidAsync("initializeInactivityTimer", dotNetObjectReference); }
public ClientToastrService(IJSRuntime jsRuntime) { JsRuntime = jsRuntime; }
public ExampleJsInterop(IJSRuntime js) { this.js = js; }
public static ValueTask NavigateToFragmentAsync(this NavigationManager navigationManager, IJSRuntime jSRuntime) { Uri uri = navigationManager.ToAbsoluteUri(navigationManager.Uri); if (uri.Fragment.Length == 0) { return(default);
public TooltipsInitializer(IJSRuntime jsRuntime) { moduleTask = new(() => jsRuntime.InvokeAsync <IJSObjectReference>( "import", "./_content/SafeExchange.Client.Web.Components/tooltipsInitializer.js").AsTask()); }
public LocalStorageService(IJSRuntime js) => _js = js;
public static async ValueTask <bool> Confirm(this IJSRuntime js, string message) { return(await js.InvokeAsync <bool>("confirm", message)); }
/// <summary> /// Creates a new <see cref="RemoteUriHelper"/>. /// </summary> /// <param name="jsRuntime"></param> public RemoteUriHelper(IJSRuntime jsRuntime) { _jsRuntime = jsRuntime; }
public static ValueTask <object> SetInLocalStorage(this IJSRuntime js, string key, string content) => js.InvokeAsync <object>("localStorage.setItem", key, content);
public Common(IJSRuntime jsRuntime, NavigationManager navigationManager) { _jsRuntime = jsRuntime; _navigationManager = navigationManager; }
public static ValueTask <object> RemoveItem(this IJSRuntime js, string key) => js.InvokeAsync <object>("localStorage.removeItem", key);
public BeepPlayer(IJSRuntime jsRuntime) { _JSRuntime = jsRuntime; }
public PrepareForInteropEventArgs(IJSRuntime js) { JS = js; }
// TODO: clean this public static Task <bool> SetChartData(IJSRuntime runtime, string id, ChartType type, object data, object options) { return(runtime.InvokeAsync <bool>("DBlazorCharts.setChartData", id, ToChartTypeString(type), data, options, data is string, options is string)); }
public LocalStorageService(IJSRuntime jsRuntime) { _jsRuntime = jsRuntime; }
public static async ValueTask ToastrSuccess(this IJSRuntime JSRuntime, string message) { await JSRuntime.InvokeVoidAsync("ShowToastr", "success", message); }
public CodeInlineHandler(IJSRuntime jSRuntime) { this.jSRuntime = jSRuntime; }
public static async ValueTask ToastrWarning(this IJSRuntime JSRuntime, string message) { await JSRuntime.InvokeVoidAsync("ShowToastr", "warning", message); }
public WebAssemblyHost(IServiceProvider services, IJSRuntime runtime) { Services = services ?? throw new ArgumentNullException(nameof(services)); _runtime = runtime ?? throw new ArgumentNullException(nameof(runtime)); }
public AspNetGitHubAccessor(IJSRuntime jsRuntime) { _jsRuntime = jsRuntime; }