public async Task RegisterDropEventsAsync(DropEventsOptions dropEventsOptions)
        {
            if (dropEventsOptions is null)
            {
                throw new ArgumentNullException(nameof(dropEventsOptions));
            }

            await this.FileReaderJsInterop.RegisterDropEvents(this.ElementRef, dropEventsOptions);
        }
Example #2
0
        internal async Task <bool> RegisterDropEvents(ElementReference elementReference, DropEventsOptions options)
        {
            await EnsureInitializedAsync();

            return(await CurrentJSRuntime.InvokeAsync <bool>($"FileReaderComponent.RegisterDropEvents", elementReference, options));
        }