AJAX command for calling the jQuery replace() method.
The 'insert/replaceWith' command instructs the client to use jQuery's replaceWith() method to replace each element matched matched by the given selector with the given HTML.
This command is implemented by Drupal.AjaxCommands.prototype.insert() defined in misc/ajax.js.
See jQuery replaceWith command
Expanded class hierarchy of ReplaceCommand
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
InsertCommand:: |
protected | property | The HTML content that will replace the matched element(s). | |
InsertCommand:: |
protected | property | A CSS selector string. | |
InsertCommand:: |
protected | property | A settings array to be passed to any any attached JavaScript behavior. | |
InsertCommand:: |
public | function | Constructs an InsertCommand object. | |
ReplaceCommand:: |
public | function |
Implements Drupal\Core\Ajax\CommandInterface:render(). Overrides InsertCommand:: |