Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
G
General documentation
Manage
Activity
Members
Labels
Plan
Issues
24
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Documentation
General documentation
Commits
40984a2b
Commit
40984a2b
authored
4 years ago
by
Matthieu Fesselier
Browse files
Options
Downloads
Patches
Plain Diff
update doc
parent
477efb7c
No related branches found
No related tags found
1 merge request
!28
Core@0.13
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
source/import_documentation/Components/Solid-Form-Search.rst
+5
-0
5 additions, 0 deletions
source/import_documentation/Components/Solid-Form-Search.rst
source/import_documentation/Mixins/store-mixin.rst
+36
-0
36 additions, 0 deletions
source/import_documentation/Mixins/store-mixin.rst
with
41 additions
and
0 deletions
source/import_documentation/Components/Solid-Form-Search.rst
+
5
−
0
View file @
40984a2b
...
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
source/import_documentation/Mixins/store-mixin.rst
+
36
−
0
View file @
40984a2b
...
...
@@ -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
------
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment