From bcc26d3fcff0246c06e51548f6509b11960ecb91 Mon Sep 17 00:00:00 2001 From: Manon Bourgognon <manon.bourgognon@epitech.eu> Date: Wed, 5 May 2021 18:17:49 +0200 Subject: [PATCH] view-title, view-description, keep-url attr --- source/import_documentation/Components/Solid-Router.rst | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/source/import_documentation/Components/Solid-Router.rst b/source/import_documentation/Components/Solid-Router.rst index 80e3b9c..c038e83 100644 --- a/source/import_documentation/Components/Solid-Router.rst +++ b/source/import_documentation/Components/Solid-Router.rst @@ -53,12 +53,13 @@ Displays a menu and handle the navigation for you. - ``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. +- ``keep-url``: It freezes the URL of all the ``<solid-route>`` included. Usefull to freeze the URL when a pop-up is displayed. ``<solid-route>`` attributes: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - ``use-id``: indicates that the route takes an id. -- ``name``: The name of the route. Must match the id of the view +- ``name``: The name of the route. Must match the ``data-view`` 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 @@ -68,6 +69,12 @@ Displays a menu and handle the navigation for you. ``<solid-router>``. It is automatically added/removed by ``<solid-router>`` and should not be tinkered manually. +``<div data-view=[name]>`` attributes: +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + +- ``view-title``: allows to choose the ``<title>`` content of each `data-view` (of each "page"). +- ``view-description``: allows to choose the value of ``content`` attribute in ``<meta name="description">`` tag. + solid-link ---------- -- GitLab