/// <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();
 }
Example #2
0
        public Task Close(CloseReason closeReason)
        {
            ParentBarDropdown?.Hide();

            return(Task.CompletedTask);
        }
Example #3
0
 protected void ClickHandler()
 {
     ParentBarDropdown?.Toggle();
 }
Example #4
0
        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));
        }