Provides an AJAX command for scrolling to the top of an element.
This command is implemented in Drupal.AjaxCommands.prototype.viewsScrollTop.
Hierarchy
- class \Drupal\views\Ajax\ScrollTopCommand implements CommandInterface
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. |
Please login to continue.