Browse Source

update

update
jqh 5 years ago
parent
commit
e2c81d4531
1 changed files with 10 additions and 0 deletions
  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([