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

Add alt attribute in the doc

parent e1c31a31
No related branches found
No related tags found
2 merge requests!54Dev to Master,!48Add alt attribute in the doc
......@@ -71,7 +71,7 @@ Attributes
``default-[field]``
~~~~~~~~~~~~~~~~~~~
Value displayed for ``[field]`` when it’s empty or not defined
Value displayed for ``[field]`` when it’s empty or not defined.
``widget-[field]``
~~~~~~~~~~~~~~~~~~
......@@ -95,11 +95,11 @@ Attributes
``label-[field]``
~~~~~~~~~~~~~~~~~
Set the label for the ``[field]``
Set the label for the ``[field]``.
``placeholder-[field]``
~~~~~~~~~~~~~~~~~~~~~~~
Set the placeholder for the ``[field]``
Set the placeholder for the ``[field]``.
``class-[field]``
~~~~~~~~~~~~~~~~~
......@@ -126,6 +126,11 @@ Attributes
editable-name
></solid-display>
``alt-[field]``
~~~~~~~~~~~~~~~
*Works only with solid-display-img*
Set the alt for the field ``[field]``.
``multiple-[field]``
~~~~~~~~~~~~~~~~~~~~
......
......@@ -29,10 +29,10 @@ Name of the template to use. Available templates:
- ``display`` directory
- ``value``: displays ``value`` directly in the widget tag.
- ``div``: displays ``value`` inside a ``<div>`` tag
- ``link``: displays ``value`` as an ``href`` attribute in a ``<a>`` tag
- ``img``: displays ``value`` as a ``src`` attribute in a ``<img>`` tag
- ``boolean``: displays label (or name) in a ``<label>`` tag if ``value == true``
- ``div``: displays ``value`` inside a ``<div>`` tag.
- ``link``: displays ``value`` as an ``href`` attribute in a ``<a>`` tag.
- ``img``: displays ``value`` as a ``src`` attribute in a ``<img>`` tag.
- ``boolean``: displays label (or name) in a ``<label>`` tag if ``value == true``.
- ``form`` directory
......
......@@ -5,6 +5,10 @@ List of attributes (core framework)
~~~~~~~~~~~~~~~~~~
* :ref:`widget-mixin <widget-mixin>`
``alt-[field]``
~~~~~~~~~~~~~~~
* :ref:`widget-mixin <widget-mixin>`
``autocomplete-[field]``
~~~~~~~~~~~~~~~~~~~~~~~~
* :ref:`solid-form <solid-form>`
......
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