ybc icon indicating copy to clipboard operation
ybc copied to clipboard

Allow `onclick` callback property on more things like: `NavbarItem`

Open 05storm26 opened this issue 4 years ago • 0 comments

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.

05storm26 avatar Jan 30 '22 21:01 05storm26