Access to Table records in Groups closure

I have the following table

public function table(Table $table): Table
{
    return $table
        ->query(Issue::query())
        ->groups([
            Group::make('status')
                ->getDescriptionFromRecordUsing(function ($records): string {
                    // Can I access all the records here?
                })
                ->collapsible()
        ]);
}


Is there a way to access all the records on the table (after filters are applied)? Ideally, I'd like to access them in the getDescriptionFromRecordUsing
Solution
Ok I found a solution to this. You can do something like
$this->table->getRecords();

Not sure if there are any downsides to this but is seems to work. Hope it helps.
Was this page helpful?