Skip to content

Allow onclick callback property on more things like: NavbarItem #26

@05storm26

Description

@05storm26

Allow setting the onclick property on the NavbarItem. This would allow the creation of Single Page Applications that handle routes using javascript and update the browser history from javascript like this: https://docs.rs/yew-router/latest/yew_router/

Using A or specifically NavbarItem tags instead of buttons has the advantage that the url is actually visible to the user and they can open the link on a new tab if they wish, however if they just click on it the onclick handler runs.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions