/// <summary> /// Handles the item onclick event. /// </summary> /// <returns>A task that represents the asynchronous operation.</returns> protected async Task ClickHandler() { if (ParentBarDropdown is not null && ParentDropdownState.Mode == BarMode.Horizontal) { if (!ParentBarDropdown.WasJustToggled) { await ParentBarDropdown.Hide(true); } } await Clicked.InvokeAsync(); }
public Task Close(CloseReason closeReason) { ParentBarDropdown?.Hide(); return(Task.CompletedTask); }
protected void ClickHandler() { ParentBarDropdown?.Toggle(); }
protected Task ClickHandler() { ParentBarDropdown?.Toggle(); return(Task.CompletedTask); }
/// <summary> /// Handles the button click event. /// </summary> /// <returns>Returns the awaitable task.</returns> protected Task ClickHandler() { ParentBarDropdown?.Toggle(); return(Clicked.InvokeAsync(null)); }