Skip to content

Commit

Permalink
docs: streamline part about data-attributes
Browse files Browse the repository at this point in the history
  • Loading branch information
jonaseberle committed Mar 6, 2024
1 parent 6aa7888 commit 1b5e2b8
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions Documentation/Configuration/Customization/Index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -86,12 +86,16 @@ These **HTML element attributes** control the functionality:
.. rst-class:: dl-parameters

Save and close
It is recommended to have that hidden on initial load and only show it when
the user has made a change.

The default themes show it when the user has clicked the "settings" collapsible.

Example:

.. code-block:: HTML

<button class="btn btn-default"
style="display: none"
<button style="display: none"
data-cookieman-save>
{f:translate(key: 'save')}
</button>
Expand All @@ -105,8 +109,7 @@ Mark all checkboxes

.. code-block:: HTML

<button class="btn btn-primary"
data-cookieman-accept-all
<button data-cookieman-accept-all
data-cookieman-save>
{f:translate(key: 'accept')}
</button>
Expand All @@ -124,8 +127,7 @@ Uncheck all checkboxes

.. code-block:: HTML

<button class="btn btn-primary"
data-cookieman-accept-none
<button data-cookieman-accept-none
data-cookieman-save>
{f:translate(key: 'deny')}
</button>

0 comments on commit 1b5e2b8

Please sign in to comment.