Skip to content
Snippets Groups Projects
Commit 97fa90d2 authored by Manon Bourgognon's avatar Manon Bourgognon
Browse files

Refresh multiple-field attribute doc

parent 522c8400
No related branches found
No related tags found
2 merge requests!28Core@0.13,!24Refresh multiple-field attribute doc
...@@ -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:
......
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