Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
05storm26 opened this issue Jan 30, 2022 · 0 comments
Open

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

05storm26 opened this issue Jan 30, 2022 · 0 comments

Comments

@05storm26
Copy link

05storm26 commented Jan 30, 2022

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant