Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
G
General documentation
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
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
97fa90d2
Commit
97fa90d2
authored
4 years ago
by
Manon Bourgognon
Browse files
Options
Downloads
Patches
Plain Diff
Refresh multiple-field attribute doc
parent
522c8400
No related branches found
No related tags found
2 merge requests
!28
Core@0.13
,
!24
Refresh multiple-field attribute doc
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
source/import_documentation/Mixins/widget-mixin.rst
+14
-5
14 additions, 5 deletions
source/import_documentation/Mixins/widget-mixin.rst
with
14 additions
and
5 deletions
source/import_documentation/Mixins/widget-mixin.rst
+
14
−
5
View file @
97fa90d2
...
@@ -125,19 +125,28 @@ Attributes
...
@@ -125,19 +125,28 @@ Attributes
``multiple-[field]``
``multiple-[field]``
~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~
This attribute allows to manage containers inside a resource.
Show ``[field]`` as multiple field containing
Show ``[field]`` as multiple field containing
one widget for each child.
one widget for each child.
Multiple accepts a container's URL as value (= the ``field`` must refer to an URL)
and creates an intern component to display it, its resource is this container.
Multiple widget can be specified, example:
Multiple widget can be specified, example:
``multiple-skills="my-custom-multiple-widget"``. If argument is used
``multiple-skills="my-custom-multiple-widget"``. If argument is used
without value, default multiple widget is used.
without value, default multiple widget is used.
All attributes starting by ``each`` will be applied on each child,
without the prefix ``each``.
- ``each-label-[field]``: label of each child of multiple widget
It can be used in :
- ``each-class-[field]``: class of each child of multiple widget
- ``each-range-[field]``: range value of each child of multiple widget
- Solid-display : the field in ``multiple-field`` will be transfered in a solid-multiple component by default.
If ``multiple-field`` is followed by something, this will be transfered inside a
solid-display (``multiple-[field]-empty-widget``, ``multiple-[field]-next``) .
- Solid-form : the "field" in ``multiple-field`` will be transfered in a
solid-form-multiple component by default.
Thanks to the multiple attribute, it is possible to add and remove elements.
In both cases, the widget of ``multiple-[field]`` can be modified.
For ``solid-form`` only:
For ``solid-form`` only:
...
...
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