This example showcases how to load the menu on click instead of having a static list of actions.
This is accomplished by:
- Using the
@bind-IsActive:afterparameter to trigger an async method. - Loading the menu items in the async method.
- Setting the
IsHoverableparameter to false so the menu open on hover only by clicking on the trigger button. - Applying
.is-loadingtoTriggerButtonCsswhenIsActive == true && LoadedMenuItems == null