コード例 #1
0
 /// <summary>
 /// Handles the onclick event, if not disabled.
 /// </summary>
 /// <returns></returns>
 protected async Task ClickHandler()
 {
     if (!Disabled)
     {
         if (ParentDropdown is not null)
         {
             if (!ParentDropdown.WasJustToggled)
             {
                 await ParentDropdown.Hide(true);
             }
         }
         await Clicked.InvokeAsync(Value);
     }
 }
コード例 #2
0
        public Task Close(CloseReason closeReason)
        {
            ParentDropdown?.Hide();

            return(Task.CompletedTask);
        }