Exemplo n.º 1
0
 public ResizeListener(IJSRuntime jsRuntime, IOptions <ResizeOptions> options = null)
 {
     this.options   = options?.Value ?? new ResizeOptions();
     this.jsRuntime = jsRuntime;
 }
Exemplo n.º 2
0
 public ResizeListener(IJSRuntime jsRuntime, IOptions <ResizeOptions> options = null)
 {
     this.options = options.Value ?? new ResizeOptions();
     moduleTask   = new(() => jsRuntime.InvokeAsync <IJSObjectReference>(
                            "import", "./_content/BlazorPro.BlazorSize/blazorSizeResizeModule.js").AsTask());
 }