Skip to content

Overwriting FluentNavLink callback #1791

Discussion options

You must be logged in to vote

Ahh, Copilot helped me out.

The solution is:

<FluentNavLink @onclick="@(e => OnClick(e, linkName))">Users<FluentNavLink>

@code {

    public string OnClick(MouseEventArgs args, string linkName)
    {
        // setting up state or firing event by passing the `linkName`
    }

}

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@vnbaaij
Comment options

Answer selected by Andras-Csanyi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants