Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Search in hidden columns #419

Open
eaton010 opened this issue Jan 25, 2025 · 1 comment
Open

Search in hidden columns #419

eaton010 opened this issue Jan 25, 2025 · 1 comment
Labels
enhancement New feature or request

Comments

@eaton010
Copy link

How to search while the columns is hidden.
eg I have a 'city' [7] column and I'm hide it.
examples code:

new simpleDatatables.DataTable('#house', {
                columns: [
                    {
						searchable: true,
                        select: [0, 6, 7],
                        hidden: true,
						
                        render: (data, cell, row) => {
                            row.dataset.name = data // Will add data to row instead.
                            return data // Will not be shown as column is hidden.
                        }
                    }
                ]
				})

because the results is there when I'm not hiding the city column, but blank result when I hide the column.

@johanneswilm johanneswilm added the enhancement New feature or request label Feb 2, 2025
@johanneswilm
Copy link
Member

It is unclear what you are trying to achieve. Do you want to let users search for a city name (for example "Clacton") and show them rows from Clacton but with the word "Clacton" hidden? That sounds like a more exotic UC than what we have encountered so far. It sounds like the column is not really hidden in all respects then. Have you tried hiding the column by other means? For example CSS?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants