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.ajax.prototype.commands.insert() defined in misc/ajax.js.
See jQuery replaceWith command
Expanded class hierarchy of ReplaceCommand
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
ReplaceCommand:: |
public | function |
Implements Drupal\Core\Ajax\CommandInterface:render(). Overrides InsertCommand:: |
|
InsertCommand:: |
public | function | Constructs an InsertCommand object. | |
InsertCommand:: |
protected | property | A settings array to be passed to any any attached JavaScript behavior. | |
InsertCommand:: |
protected | property | A CSS selector string. | |
InsertCommand:: |
protected | property | The HTML content that will replace the matched element(s). |