ScrollTopCommand

Provides an AJAX command for scrolling to the top of an element.

This command is implemented in Drupal.AjaxCommands.prototype.viewsScrollTop.

Hierarchy

File

core/modules/views/src/Ajax/ScrollTopCommand.php, line 12

Namespace

Drupal\views\Ajax

Members

Name Modifiers Type Description
ScrollTopCommand::$selector protected property A CSS selector string.
ScrollTopCommand::render public function Return an array to be run through json_encode and sent to the client. Overrides CommandInterface::render
ScrollTopCommand::__construct public function Constructs a \Drupal\views\Ajax\ScrollTopCommand object.
doc_Drupal
2016-10-29 09:40:05
Comments
Leave a Comment

Please login to continue.