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

Pass columnkey to filterFunction method for custom filter #106

Open
moet78 opened this issue Aug 16, 2017 · 0 comments
Open

Pass columnkey to filterFunction method for custom filter #106

moet78 opened this issue Aug 16, 2017 · 0 comments

Comments

@moet78
Copy link

moet78 commented Aug 16, 2017

When trying to generate the column definition with script, to handle mutable column returned from backend, I also need to handle different custom filter function on some of the columns.

However, currently the getFilteredContent in fixtable-grid.js only pass 'row' and 'filterValue' into the filterFunction, meaning there is no easy way to identify which column I am working on, making it difficult to construct the column definition with script.

Can we also pass the columnkey into the filterFunction? That would make constructing a fixtable with dynamic column list easier, with minimum change to the code.

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

No branches or pull requests

1 participant