Skip to content

Latest commit

 

History

History
27 lines (20 loc) · 702 Bytes

Row.md

File metadata and controls

27 lines (20 loc) · 702 Bytes

Full Documentation

Row

You can fully customize how the row is rendered by implementing the renderRow method:

public function renderRow($item): string|View
{
    return view('backend.users.table-row')->with(['user' => $row]);
}
<tr>
    <td>{{ $user->created_at->translatedFormat('d M Y') }}</td>
    <td>{{ $user->name }}</td>
    <td>{{ $user->email }}</td>
</tr>

This is useful when you have many cells requiring a complex rendering but you don't want to create a single blade file for each cell.

When you use a custom row rendering file, most of the column definition parameters are not considered anymore: cellView, map, isRaw, tdStyle