ux icon indicating copy to clipboard operation
ux copied to clipboard

Add functionality to remove element from dom

Open tito10047 opened this issue 5 months ago • 5 comments

Q A
Bug fix? no
New feature? yes
Issues Fix #2007
License MIT

Add ability to remove element from dom passing the header to response

#[AsLiveComponent()]
final class Component
{
	use DefaultActionTrait;

	#[LiveAction]
	public function removeFromDom() :Response{
                $response = new Response(null);
                $response->headers->set('X-Live-Delete', '1');
                return $response;
	}
}

tito10047 avatar Sep 22 '24 17:09 tito10047