Disable Blazor NavLink
Is there any way to disable a NavLink in Blazor?
While my application is doing some long calculations I want to prevent the user to navigate to another page.
5 Replies
you can add loading bar and pop up?.
Do you mean like adding an overlapping loading animation that prevents the user from clicking on anything else?
I have a button that cancels the calculations though.
well in that case add an overlapping loading animation and add Cancel button on that popup... :awesome:
or add a.. State? like if State A then disable this if State B then enable it?. i often do this on Unity whenever i want to playaround with the unity prefab, but im not so sure if this OK in blazor. :TeBeCat:
I'll try that
Thank you =)))
AdvancedNavLink.razor:
Usage: