protected function getHeaderWidgets(): array { $activeTabRecords = $this->modifyQueryWithActiveTab(CustomModel::query())->get(); return [ new MyCustomWidget::make(['records' => $activeTabRecords]), ]; }
public $records