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
- class \Drupal\Core\Ajax\RemoveCommand implements CommandInterface
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. |
Please login to continue.