An AJAX command for implementing jQuery's data() method.
This instructs the client to attach the name=value pair of data to the selector via jQuery's data cache.
This command is implemented by Drupal.AjaxCommands.prototype.data() defined in misc/ajax.js.
Expanded class hierarchy of DataCommand
Name![]() |
Modifiers | Type | Description | Overrides |
---|---|---|---|---|
DataCommand:: |
protected | property | The key of the data attached to elements matched by the selector. | |
DataCommand:: |
protected | property | A CSS selector string for elements to which data will be attached. | |
DataCommand:: |
protected | property | The value of the data to be atached to elements matched by the selector. | |
DataCommand:: |
public | function |
Implements Drupal\Core\Ajax\CommandInterface:render(). Overrides CommandInterface:: |
|
DataCommand:: |
public | function | Constructs a DataCommand object. |