Hi Guys,
is there a reason IActionExecutorService is internal? i am trying to build some custom navigation dashbaord - where i generate a href links - and in the onclick event i execute the ShowNavigationItemAction -> for this i want the loading indicator to be shown - so i added the xaf-action css class - but to hide the loading indicator it seems i need to use the IActionExecutorService ?
Hi Martin,
As far as I understand, you with to execute custom code when an Action in the Navigation Control is clicked (similar as you do with the SetClientScript method in XAF Web). Currently, XAF Blazor does not support this. I'll discuss this case with my team to check what solution we can suggest for now.
Meanwhile, would you please send me a sample project to illustrate your task in action?
Hi Gosha,
no - i dont want to customize the Navigation Control. I try to build some kind of "quick navigation" dashboard - i have a custom razor component - where i generate a href links
Snippet
<a href="#" class="xaf-action" @onclick="() => ExecuteNavigationClick(item)" @onclick:preventDefault> <XafImage ImageName="@item.NavigationItem.ImageName" Size="48" CssClass="item-icon" /> <div class="item-label">@item.NavigationItem.Caption</div> </a>
the a href i have decorated with the xaf-action css class - so the loading indicator is automaticly shown. but in the ExecuteNavigationClick - i am executing the ShowNavigationItemAction - which should hide the loading indicator after it has executed. so far i found from source code that you use the # IActionExecutorService for this. i made a quick and dirty example - see attached - simply open an employee detailview to see the component!