Utilities that make Blazor WASM C# interfacing with JavaScript easier, will triggers corresponding JavaScript functionality.


Keywords
Blazor, Interop, JavaScript, WASM
License
MIT
Install
Install-Package EventHorizon.Blazor.Interop -Version 0.1.2

Documentation

Build Status Nuget

GitHub GitHub tag (latest SemVer pre-release)

About

The EventHorizon.Blazor.Interop is a slim WASM project I created to help with common Blazor JavaScript Interop actions.

Usage

This library requires the usage of the IJSRuntime, you will need to attach one manually before usage.

In "App.razor"

@code {
    [Inject]
    public IJSRuntime JSRuntime { get; set; }

    protected override void OnInitialized()
    {
        EventHorizonBlazorInterop.JSRuntime = JSRuntime;
    }
}

Sample

The EventHorizon.Blazor.Interop.Sample Project contains a suite of performance tests I created to help me verify the performance scenarios I will be using.

Use Libraries

MediatR

Inspiration

Future Work

  • Look at binary serialization between the layers.