AddJsCommand::$selector
Same name in other branches
- 9 core/lib/Drupal/Core/Ajax/AddJsCommand.php \Drupal\Core\Ajax\AddJsCommand::selector
- 11.x core/lib/Drupal/Core/Ajax/AddJsCommand.php \Drupal\Core\Ajax\AddJsCommand::selector
A CSS selector string.
If the command is a response to a request from an #ajax form element then this value will default to 'body'.
Type: string
File
-
core/
lib/ Drupal/ Core/ Ajax/ AddJsCommand.php, line 33
Class
- AddJsCommand
- An AJAX command for adding JS to the page via AJAX.
Namespace
Drupal\Core\AjaxCode
protected $selector;
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.