To enable clickable rows on your table, you may add the following to the table component configuration:
1publicfunctionconfigure():void
2{
3$this->setPrimaryKey('id')
4->setTableRowUrl(function($row){
5returnroute('admin.users.show',$row);
6})
7->setTableRowUrlTarget(function($row){
8if($row->isExternal()){
9return'_blank';
10}
11
12return'_self';
13});
14}
If you would like to make a certain cell unclickable (i.e. if you have something else clickable in that cell), you may do so by adding the following to the column configuration:
1Column::make('Name')
2->unclickable(),
Note: LinkColumns are not clickable by default to preserve the intended behavior of the link.
Global search
Find something useful.
Start with two characters.Search the open-source catalog, article library, and code snippets.