Table column searchable - how to show user which columns are searchable

In the table builder, you can make columns searchable, which is great. For example:
TextColumn::make('id'),
TextColumn::make('name')->searchable(),
TextColumn::make('title')->searchable(),
TextColumn::make('description')
TextColumn::make('id'),
TextColumn::make('name')->searchable(),
TextColumn::make('title')->searchable(),
TextColumn::make('description')
So the name and title columns are searchable, but not the id and description column. From an end user perspective: how to know, which fields/columns are searchable and which not? When I enter for example 12, without any extra knowledge / information, I would expect to get the row with the id 12 or at least with 12 in it. Why not adding the names (labels) of the columns as a placeholder in the searchbox. Or mark the searchable columns somehow ?
Solution:
GitHub
Add column labels to table global search field by bernhardh · Pull ...
Changes have been thoroughly tested to not break existing functionality. Visual changes are explained in the PR description using a screenshot/recording of before and after. TLDR: This PR adds th...
Jump to solution
2 Replies
bernhard
bernhardOP15mo ago
Maybe something like this
No description
Solution
bernhard
bernhard13mo ago
GitHub
Add column labels to table global search field by bernhardh · Pull ...
Changes have been thoroughly tested to not break existing functionality. Visual changes are explained in the PR description using a screenshot/recording of before and after. TLDR: This PR adds th...
Want results from more Discord servers?
Add your server