Skip to content
Snippets Groups Projects
SiB-Delete.rst 513 B
Newer Older
Alice Poggioli's avatar
Alice Poggioli committed
===========

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

   <sib-delete data-src="http://localhost:8000/conversations/9/"></sib-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.