/// <summary>
        /// Handles the item onclick event.
        /// </summary>
        /// <returns>A task that represents the asynchronous operation.</returns>
        protected Task ClickHandler()
        {
            if (!Disabled)
            {
                ParentDropdown?.Toggle();
            }

            return(Task.CompletedTask);
        }
        /// <summary>
        /// Handles the item onclick event.
        /// </summary>
        /// <returns>A task that represents the asynchronous operation.</returns>
        protected Task ClickHandler()
        {
            if (!Disabled)
            {
                ParentDropdown?.Toggle();
            }

            return(Clicked.InvokeAsync(null));
        }
        protected Task ClickHandler()
        {
            ParentDropdown?.Toggle();

            return(Task.CompletedTask);
        }
Beispiel #4
0
 protected void ClickHandler()
 {
     ParentDropdown?.Toggle();
 }