diff --git a/source/import_documentation/Components/SiB-Display.rst b/source/import_documentation/Components/SiB-Display.rst index 0fdcc59b95d046cfeff454d54df13c67d963d125..19d25d2baa9918036cf95e525e4e856761bc1d0c 100644 --- a/source/import_documentation/Components/SiB-Display.rst +++ b/source/import_documentation/Components/SiB-Display.rst @@ -1,4 +1,5 @@ .. _solid-display: + solid-display ============= diff --git a/source/import_documentation/Components/Solid-Lang.rst b/source/import_documentation/Components/Solid-Lang.rst new file mode 100644 index 0000000000000000000000000000000000000000..923425ece887f1b9a02c26519af0e0110d5b9033 --- /dev/null +++ b/source/import_documentation/Components/Solid-Lang.rst @@ -0,0 +1,22 @@ +solid-lang +============ + +Displays a button to set the language of the application. + +.. code:: html + + <solid-lang lang="is" data-label="Icelandic"></solid-lang> + + +It uses the ``selectLanguage`` method from the :ref:`store <selectLanguage>`. + +Attributes +---------- + +``lang`` +~~~~~~~~~~~~ + Code of the language. + +``data-label`` +~~~~~~~~~~~~~~ + Text to display on the button. diff --git a/source/import_documentation/Store-doc.rst b/source/import_documentation/Store-doc.rst index de75371b3166126bb3215ae2f7936ea82e24e346..3f575666f4213a1f64f2beddd65448464958dcbd 100644 --- a/source/import_documentation/Store-doc.rst +++ b/source/import_documentation/Store-doc.rst @@ -14,7 +14,7 @@ API Reference ``getData`` (``async``) -^^^^^^^^^^^^^^^^^^^ +^^^^^^^^^^^^^^^^^^^^^^^ Fetch and cache the data for a resource @@ -29,7 +29,7 @@ Fetch and cache the data for a resource ``get`` -^^^^^ +^^^^^^^ Synchronously returns a resource from the cache. @@ -43,7 +43,7 @@ Synchronously returns a resource from the cache. ``post`` (``async``) -^^^^^^^^^^^^^^^^ +^^^^^^^^^^^^^^^^^^^^^^ Send a POST request to create a resource in a container. When the request succeed, the resource is cleared from the cache, and the components showing it are notified. @@ -58,7 +58,7 @@ Send a POST request to create a resource in a container. When the request succee ``put`` (``async``) -^^^^^^^^^^^^^^^ +^^^^^^^^^^^^^^^^^^^^^ Send a PUT request to edit a resource. When the request succeed, the resource is cleared from the cache, and the components showing it are notified. @@ -73,7 +73,7 @@ Send a PUT request to edit a resource. When the request succeed, the resource is ``patch`` (``async``) -^^^^^^^^^^^^^^^^^ +^^^^^^^^^^^^^^^^^^^^^^^ Send a PATCH request to edit a resource. When the request succeed, the resource is cleared from the cache, and the components showing it are notified. @@ -88,7 +88,7 @@ Send a PATCH request to edit a resource. When the request succeed, the resource ``delete`` (``async``) -^^^^^^^^^^^^^^^^^^ +^^^^^^^^^^^^^^^^^^^^^^^^ Send a DELETE request to delete a resource. When the request succeed, the resource is cleared from the cache, and the components showing it are notified. @@ -103,7 +103,7 @@ Send a DELETE request to delete a resource. When the request succeed, the resour ``subscribeTo`` -^^^^^^^^^^^^^ +^^^^^^^^^^^^^^^^ Make a resource listen another one. When a change is detected on a resource, all the resources which are listening are removed from the cache, and the component showing them are notified to re-render their content. @@ -114,7 +114,7 @@ Make a resource listen another one. When a change is detected on a resource, all ``clearCache`` -^^^^^^^^^^^^ +^^^^^^^^^^^^^^^ Manually remove a resource from the cache @@ -122,6 +122,7 @@ Manually remove a resource from the cache * ``id``: uri of the resource to remove from the cache +.. _selectLanguage: ``selectLanguage`` ^^^^^^^^^^^^^^^^^^ diff --git a/source/index.rst b/source/index.rst index 3a24dc82e929d65c824a38be84d5f1e30fbbdd71..d898615592dde4b619fb73dfb0d5876eb9602fad 100644 --- a/source/index.rst +++ b/source/index.rst @@ -34,6 +34,7 @@ Welcome to Startinblox's documentation! import_documentation/Components/SiB-Map import_documentation/Components/SiB-Ac-Checker import_documentation/Components/SiB-Widget + import_documentation/Components/Solid-Lang .. toctree:: :maxdepth: 2 @@ -57,6 +58,7 @@ Welcome to Startinblox's documentation! import_documentation/Mixins/paginate-mixin import_documentation/Mixins/sorter-mixin import_documentation/Mixins/highlighter-mixin + import_documentation/Mixins/next-mixin .. toctree:: :maxdepth: 2 @@ -64,7 +66,7 @@ Welcome to Startinblox's documentation! import_documentation/Widgets/Reference import_documentation/Widgets/Examples -Å“ + .. toctree:: :maxdepth: 2 :caption: Javascript Api: