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..
                ])


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.
Was this page helpful?