Skip to content
Snippets Groups Projects
Commit 143b3f4a authored by Matthieu Fesselier's avatar Matthieu Fesselier
Browse files

Merge branch 'confirmation-widget' into 'dev'

feature: add confirmation-widget doc

See merge request !67
parents ab854b87 840edeb2
No related branches found
No related tags found
No related merge requests found
......@@ -69,4 +69,30 @@ Attributes
confirmation-submit-text="Yes, I am"
confirmation-submit-class="submit-button"
confirmation-cancel-class="cancel-button"
></solid-form>
\ No newline at end of file
></solid-form>
.. _confirmation-widget:
``confirmation-widget``
~~~~~~~~~~~~~~~~~~~~~~~
*Available from version 0.17*
Allows to insert a widget in the modal dialog, instead of ``confirmation-message`` (confirmation-widget prevails over confirmation-message).
The widget can contain a ``<solid-display>`` to display data from the resource concerned.
Example of confirmation-widget attribute use :
.. code:: html
<solid-widget name="confirm-delete-widget">
<template>
<div>
<p>Are you sure to delete <strong><solid-display fields="name" data-src="${value}" style="display:inline-block"></solid-display></strong> ? </p>
</div>
</template>
></solid-widget>
<solid-delete
data-src="http://server/user/"
confirmation-type="dialog"
confirmation-widget="confirm-delete-widget"
></solid-delete>
......@@ -59,6 +59,10 @@ List of attributes (core framework)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~
* :ref:`validation-mixin <confirmation-submit-text>`
``confirmation-widget``
~~~~~~~~~~~~~~~~~~~~~~~
* :ref:`validation-mixin <confirmation-widget>`
``counter-template``
~~~~~~~~~~~~~~~~~~~~
* :ref:`counter-mixin <counter-mixin>`
......
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