jqh vor 5 Jahren
Ursprung
Commit
e2c81d4531
1 geänderte Dateien mit 10 neuen und 0 gelöschten Zeilen
  1. 10 0
      src/Grid/BatchAction.php

+ 10 - 0
src/Grid/BatchAction.php

@@ -27,6 +27,16 @@ abstract class BatchAction extends GridAction
 JS;
     }
 
+    /**
+     * @return string
+     */
+    public function getSelectedKeysScript()
+    {
+        return <<<JS
+LA.grid.selected('{$this->parent->getName()}');
+JS;
+    }
+
     protected function html()
     {
         $this->setHtmlAttribute([