Skip to content
Snippets Groups Projects
SiB-Delete.rst 561 B
Newer Older
solid-delete
============

Receives the URL of a resource or of a container of resources via its
``data-src`` attribute, and displays a button to delete it when clicked.

.. code:: html

   <solid-delete data-src="http://localhost:8000/conversations/9/"></solid-delete>
Attributes
----------
``data-src``
~~~~~~~~~~~~
   The uri of the LDP resource you want to delete.
``data-label``
~~~~~~~~~~~~~~
   The text to display on the delete button.

Events
-------

``resourceDeleted``
~~~~~~~~~~~~~~~~~~~
   Triggered when the resource is successfully deleted.