3 namespace Drupal\Core\Ajax;
6 * AJAX command for resetting the striping on a table.
8 * The 'restripe' command instructs the client to restripe a table. This is
9 * usually used after a table has been modified by a replace or append command.
11 * This command is implemented by Drupal.AjaxCommands.prototype.restripe()
12 * defined in misc/ajax.js.
16 class RestripeCommand implements CommandInterface {
19 * A CSS selector string.
21 * If the command is a response to a request from an #ajax form element then
22 * this value can be NULL.
29 * Constructs a RestripeCommand object.
31 * @param string $selector
32 * A CSS selector for the table to be restriped.
34 public function __construct($selector) {
35 $this->selector = $selector;
39 * Implements Drupal\Core\Ajax\CommandInterface:render().
41 public function render() {
44 'command' => 'restripe',
45 'selector' => $this->selector,