CssCommand

An AJAX command for calling the jQuery css() method.

The 'css' command will instruct the client to use the jQuery css() method to apply the CSS arguments to elements matched by the given selector.

This command is implemented by Drupal.AjaxCommands.prototype.css() defined in misc/ajax.js.

Hierarchy

See also

http://docs.jquery.com/CSS/css#properties

Related topics

Ajax API
Overview for Drupal's Ajax API.

File

core/lib/Drupal/Core/Ajax/CssCommand.php, line 18

Namespace

Drupal\Core\Ajax

Members

Name Modifiers Type Description
CssCommand::$css protected property An array of property/value pairs to set in the CSS for the selector.
CssCommand::$selector protected property A CSS selector string.
CssCommand::render public function Implements Drupal\Core\Ajax\CommandInterface:render(). Overrides CommandInterface::render
CssCommand::setProperty public function Adds a property/value pair to the CSS to be added to this element.
CssCommand::__construct public function Constructs a CssCommand object.
doc_Drupal
2016-10-29 08:59:16
Comments
Leave a Comment

Please login to continue.