Skip to content
Snippets Groups Projects

Refresh multiple-field attribute doc

Merged Ghost User requested to merge empty-widget into dev
1 file
+ 14
5
Compare changes
  • Side-by-side
  • Inline
@@ -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:
Loading