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\Ajax

Code

protected $selector;

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.