Skip to content
Snippets Groups Projects
Commit 40984a2b authored by Matthieu Fesselier's avatar Matthieu Fesselier
Browse files

update doc

parent 477efb7c
No related branches found
No related tags found
1 merge request!28Core@0.13
......@@ -42,6 +42,11 @@ Attributes
If you want something fancier, you can set this attribute.
i.e. ``label-username="Your name"``
``submit-button``
~~~~~~~~~~~~~
Text of the submit button to create in the search form. If the attribute is not defined,
no button will be added and the form will trigger the search on change.
``range-xyz``
~~~~~~~~~~~~~
URL of a container which list the accepted values
......
......@@ -75,6 +75,42 @@ Attributes
.. image:: ./../../_static/images/import_documentation/loader.gif
:alt: Exemple of loader
``no-render``
~~~~~~~~~~~~~
While this attribute is present on a component, no data will be fetched.
This attribute is automatically removed by the router when the component
is in a view which has been activated.
This allow to lazy-load components.
``store://`` attribute values
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
This mixin decode all attribute values starting by ``store://resource`` or
``store://user`` and replace them by the values fetched from the store.
It can be a value fetched from the current resource or the current logged in user (works with ``sib-auth``).
This example will create a text input filled with the username of the current user:
.. code:: html
<solid-form
data-src="https://api.startinblox.com/circles/"
fields="user"
value-user="store://user.username"
></solid-form>
This example will write the name of the circle in the custom field:
.. code:: html
<solid-display
data-src="https://api.startinblox.com/circles/1/"
fields="custom-field"
value-custom-field="store://resource.name"
></solid-display>
Events
------
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment