public async Task RegisterDropEventsAsync(DropEventsOptions dropEventsOptions) { if (dropEventsOptions is null) { throw new ArgumentNullException(nameof(dropEventsOptions)); } await this.FileReaderJsInterop.RegisterDropEvents(this.ElementRef, dropEventsOptions); }
internal async Task <bool> RegisterDropEvents(ElementReference elementReference, DropEventsOptions options) { await EnsureInitializedAsync(); return(await CurrentJSRuntime.InvokeAsync <bool>($"FileReaderComponent.RegisterDropEvents", elementReference, options)); }