0.0.7 • Published 2 years ago
be-selectable v0.0.7
be-selectable
<nav>
<a href="/demo/foo/firstView" be-selectable>My First View</a>
<a href="/demo/foo/secondView" be-selectable>My Second View</a>
</nav>
Adds class "selected" to anchor element when the current route matches the href.
Additional features:
- Listen for client-side address changes.
- Fire event when selected status changes.
- Configure class name.
- Allow for transform to be specified on host container.