private async Task OnClear(MouseEventArgs _)
        {
            if (_lastValue != string.Empty)
            {
                await JSRuntime.InvokeVoidAsync("panoramicData.setValue", Id, string.Empty).ConfigureAwait(true);

                _value     = string.Empty;
                _lastValue = string.Empty;
                await ValueChanged.InvokeAsync(string.Empty).ConfigureAwait(true);

                await Cleared.InvokeAsync(null).ConfigureAwait(true);
            }
        }
        private async Task OnCleared()
        {
            await ValueChanged.InvokeAsync(string.Empty).ConfigureAwait(true);

            await Cleared.InvokeAsync(null).ConfigureAwait(true);
        }
示例#3
0
 public Task NotifyCleared()
 {
     return(Cleared.InvokeAsync());
 }