File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -89,7 +89,7 @@ public function reset()
8989 public function setTheme (string $ theme ): self
9090 {
9191 $ this ->theme = $ theme ;
92-
92+
9393 return $ this ;
9494 }
9595
@@ -117,7 +117,7 @@ public function addColumn(
117117
118118 return $ this ;
119119 }
120-
120+
121121 public function getColumns (): array
122122 {
123123 return array_filter ($ this ->columns , fn (Column $ column ) => $ column ->enabled );
@@ -134,7 +134,7 @@ public function getColumn(string $name): Column
134134 throw new \Exception ("Column named {$ name } not found. " );
135135 }
136136
137- public function removeColumn (string $ name ): self
137+ public function removeColumn (string | TranslatableMessage $ name ): self
138138 {
139139 foreach ($ this ->columns as $ key => $ column ) {
140140 if ($ column ->name === $ name ) {
@@ -181,7 +181,7 @@ private function applySort(): void
181181 if ($ column ->sortable !== $ sortBy ) {
182182 continue ;
183183 }
184-
184+
185185 if (is_callable ($ column ->sortableQuery )) {
186186 $ sortCallback = $ column ->sortableQuery ;
187187 $ sortCallback ($ this ->queryBuilder , $ direction );
@@ -300,9 +300,9 @@ public function getGrid(bool $forceRecreate = false): Grid
300300 $ this ->request ,
301301 $ pagination ,
302302 $ this ->theme ,
303- $ this ::class,
304303 $ this ->batchActions ,
305304 $ this ->batchMethod ,
305+ $ this ::class,
306306 $ this ->rowAttributesCallback ,
307307 );
308308 }
You can’t perform that action at this time.
0 commit comments