Commit 945116e6 authored by Clément's avatar Clément

update: doc `use-id` attribute

parent 435b6035
Pipeline #3404 passed with stage
in 27 seconds
......@@ -35,22 +35,22 @@ Displays a menu and handle the navigation for you.
### `<sib-router>` attributes:
- **default-route**: The `name` attribute of the default `<sib-route>` displayed.
- **route-prefix**: If you app is not run from the root of your domain name, for instance `www.your-domain.com/some-uri`, you should set `route-prefix` to `"some-uri"`.
- **use-hash**: If you can't rewrite the URLs on your server, you might want to set this attribute to use `location.hash` instead of `location.pathname` as URLs.
- **`default-route`**: The `name` attribute of the default `<sib-route>` displayed.
- **`route-prefix`**: If you app is not run from the root of your domain name, for instance `www.your-domain.com/some-uri`, you should set `route-prefix` to `"some-uri"`.
- **`use-hash`**: If you can't rewrite the URLs on your server, you might want to set this attribute to use `location.hash` instead of `location.pathname` as URLs.
### `<sib-route>` attributes:
- **name**: The name of the route. Must match the id of the view that is to be displayed. The same name is used as a url identifier as well.
- **rdf-type**: Can be used as an alternative of `name`. The route will be activated if a resource with the given type is passed to the router.
- **active**: This attribute is present on route being displayed by `<sib-router>`. It is automatically added/removed by `<sib-router>` and should not be tinkered manually.
- **`use-id`**: indicates that the route takes an id.
- **`name`**: The name of the route. Must match the id of the view that is to be displayed. The same name is used as a url identifier as well.
- **`rdf-type`**: Can be used as an alternative of `name`. The route will be activated if a resource with the given type is passed to the router.
- **`active`**: This attribute is present on route being displayed by `<sib-router>`. It is automatically added/removed by `<sib-router>` and should not be tinkered manually.
## sib-link
`<sib-link>` accepts the following attributes:
- **next**: The `name` attribute of the `<sib-route>` you want to access.
- **`next`**: The `name` attribute of the `<sib-route>` you want to access.
Example :
```html
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment