You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+4-2Lines changed: 4 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -272,7 +272,7 @@ public function setTableDataAttributes($attribute, $value) : array;
272
272
273
273
Along with being able to provide a view to a column, you can use pre-defined components that are built into the package. These are good for when you want to add actions to a column.
274
274
275
-
**Note:** By design using the components() method on a column will disable all other functionality (i.e. searching/sorting etc.).
275
+
**Note:** By design using the `components()` method on a column will disable all other functionality (i.e. searching/sorting etc.).
276
276
277
277
#### Defining Components for a Column
278
278
@@ -292,7 +292,7 @@ Column::make('Actions')
292
292
->addComponent(Link::make('Delete'))
293
293
````
294
294
295
-
If you would like to all the components for a given row, you may pass a callback as the second parameter of the `components()` method:
295
+
If you would like to hide all the components for a given row, you may pass a callback as the second parameter of the `components()` method:
296
296
297
297
```php
298
298
Column::make('Actions')
@@ -305,6 +305,8 @@ Column::make('Actions')
305
305
})
306
306
````
307
307
308
+
**Note:** You should still assert on the backend that these functions can not be performed on this entity.
309
+
308
310
Building on that, if you would like to pass a custom message to that column when hiding the components for this row, you may pass another callback as the third parameter:
0 commit comments