This project is not covered by Drupal’s security advisory policy.
Provides additional commands to the Drupal core AJAX framework. For use by developers who want to add effects to an AJAX callback.
The code for this project is currently going through internal quality assurance review and will be added in next few days.
Example
/**
* Ajax callback.
*/
public static function myAjax(array &$form, FormStateInterface $form_state) : AjaxResponse {
$response = new AjaxResponse();
// Scroll to latest reply.
$container = '.thread-messages';
$selector = '.thread-messages .reply:last-child';
$response->addCommand(new AnimatedScrollCommand($container, $selector));
return $response;
}Features
- AnimatedScrollCommand: Animated scrolling of a container to the top of a target child element.
Supporting organizations:
Sponsored development
Project information
- Project categories: Content display, Developer tools, User engagement
- Created by robert castelo on , updated
This project is not covered by the security advisory policy.
Use at your own risk! It may have publicly disclosed vulnerabilities.


