Drupal 8 8.0.2
|__construct ($selector, $name, $value)|
|Public Member Functions inherited from CommandInterface|
|Protected Attributes inherited from CommandInterface|
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.
Constructs a DataCommand object.
|string||$selector||A CSS selector for the elements to which the data will be attached.|
|string||$name||The key of the data to be attached to elements matched by the selector.|
|type||$value||The value of the data to be attached to elements matched by the selector.|