diff --git a/source/import_documentation/Widgets/Reference.rst b/source/import_documentation/Widgets/Reference.rst index b617f45867aa6f91e4818ad485f91b546c3cb13f..604314c5739a7b4a20c17941f8cb7e9ca5942de2 100644 --- a/source/import_documentation/Widgets/Reference.rst +++ b/source/import_documentation/Widgets/Reference.rst @@ -57,8 +57,8 @@ A widget is built like this. - ``set`` - ``default``: inserts widgets directly in the set tag. - - ``div``: inserts widgets in a ``<div>`` tag - - ``ul``: inserts widgets in a ``<ul>`` tag + - ``div``: inserts widgets in a ``<div>`` tag. + - ``ul``: inserts widgets in a ``<ul>`` tag. - **default** (no template keyword defined) @@ -72,15 +72,18 @@ A widget is built like this. ++++++++++++ Features to add to the widget. You can choose as many as you want - - ``label``: adds a ``label`` before the template. Uses the attribute ``name`` if ``label`` is not defined - - ``labellast``: adds a ``label`` after the template. Uses the attribute ``name`` if ``label`` is not defined - - ``autocompletion``: initializes the ``SlimSelect`` plugin. Works only with dropdowns + - ``label``: adds a ``label`` before the template. Uses the attribute ``name`` if ``label`` is not defined. + - ``labellast``: adds a ``label`` after the template. Uses the attribute ``name`` if ``label`` is not defined. + - ``autocompletion``: initializes the ``SlimSelect`` plugin. Works only with dropdowns. - ``autolink``: analyzes widget content, and transforms all links in anchor. - - ``mailto``: adds ``mailto:`` at the beginning of an ``href`` attribute. Works only with links - - ``tel``: adds ``tel:`` at the beginning of an ``href`` attribute. Works only with links - - ``blank``: adds an attribute ``target="_blank"``. Works only with links + - ``mailto``: adds ``mailto:`` at the beginning of an ``href`` attribute. Works only with links. + - ``tel``: adds ``tel:`` at the beginning of an ``href`` attribute. Works only with links. + - ``blank``: adds an attribute ``target="_blank"``. Works only with links. - ``placeholder``: adds a placeholder in the input. Uses the attribute ``name`` or ``label`` if ``placeholder`` is not defined. Works only with input widgets. - ``date``: transforms the value in a date, in the browser’s default locale format. - ``datetime``: transforms the value in a date and time, in the browser’s default locale format. - - ``multiline``: Shows a value on multiple lines (replace ``\n`` by ``<br>``) - - ``markdown``: Takes markdown code and displays formatted text. Works only with a display template (value, div, link). + - ``multiline``: shows a value on multiple lines (replace ``\n`` by ``<br>``). + - ``markdown``: takes markdown code and displays formatted text. Works only with a display template (value, div, link). + - ``addable``: adds a ``<solid-form>`` that allows to add data on the field concerned. + It accepts attributes from :ref:`solid-form <solid-form>` by using ``addable-[field]-[attribute]="value"`` format. + If ``addable-data-src`` is not provided, the solid-form will use the URI in ``range-[field]`` as data-src, if declared.