Positioning record checkbox in contentGrid

Hi all, i have a table that are displaying all the data in grid by using contentGrid. Wanted to know if i can position the record checkbox to right side of the grid? Some example codes.
return $table
->contentGrid([
'md' => 3,
'xl' => 4
])
->recordCheckboxPosition(RecordCheckboxPosition::AfterCells)
->recordUrl(null) // to disable table row clickable.
->defaultSort('created_at', 'desc')
->columns([
Tables\Columns\Layout\Stack::make([
// all the components..
])
return $table
->contentGrid([
'md' => 3,
'xl' => 4
])
->recordCheckboxPosition(RecordCheckboxPosition::AfterCells)
->recordUrl(null) // to disable table row clickable.
->defaultSort('created_at', 'desc')
->columns([
Tables\Columns\Layout\Stack::make([
// all the components..
])
based on documentation, i can change the checkbox position either BeforeCells or AfterCells, but seems like it wont work if i have a Stack layout wrapping all the components.
3 Replies
dwong98
dwong986mo ago
In depth, the code above rendered this view.
No description
dwong98
dwong986mo ago
when i removed the stack and let the components be in columns(), i have this view. Am i using the layout correctly?
No description
dwong98
dwong986mo ago
Up