Skip to content

Index Table Column Titles Missing #2576

Answered by tabuna
GlenWarren asked this question in Q&A
Discussion options

You must be logged in to vote

When there are no filter options and no data, it outputs a headerless block for a cleaner interface. You can override this method. For example

protected function hasHeader(Collection $columns, Collection|Paginator $row): bool
{
if ($columns->count() < 2) {
return false;
}
return ! empty(request()->query()) || $row->isNotEmpty();
}

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@GlenWarren
Comment options

Answer selected by GlenWarren
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants