class RemoveCommand

AJAX command for calling the jQuery remove() method.

The 'remove' command instructs the client to use jQuery's remove() method to remove each of elements matched by the given selector, and everything within them.

This command is implemented by Drupal.AjaxCommands.prototype.remove() defined in misc/ajax.js.

Hierarchy

See also

http://docs.jquery.com/Manipulation/remove#expr

Related topics

Ajax API
Overview for Drupal's Ajax API.

File

core/lib/Drupal/Core/Ajax/RemoveCommand.php, line 19

Namespace

Drupal\Core\Ajax

Members

Name Modifiers Type Description
RemoveCommand::$selector protected property The CSS selector for the element(s) to be removed.
RemoveCommand::render public function Implements Drupal\Core\Ajax\CommandInterface:render(). Overrides CommandInterface::render
RemoveCommand::__construct public function Constructs a RemoveCommand object.

© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!lib!Drupal!Core!Ajax!RemoveCommand.php/class/RemoveCommand/8.1.x