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

Ensure multiselect Tabulator header filter uses 'in' filter function #7111

Merged
merged 3 commits into from
Aug 13, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Update tests
  • Loading branch information
philippjfr committed Aug 13, 2024
commit 89888ed2ba2f55e7cd935a27b9a9191dbd834d96
6 changes: 3 additions & 3 deletions panel/tests/widgets/test_tables.py
Original file line number Diff line number Diff line change
Expand Up @@ -663,7 +663,7 @@ def test_tabulator_header_filters_column_config_list(document, comm):
{'field': 'index', 'sorter': 'number'},
{'field': 'A', 'sorter': 'number'},
{'field': 'B', 'sorter': 'number'},
{'field': 'C', 'headerFilter': 'list', 'headerFilterParams': {'valuesLookup': True}},
{'field': 'C', 'headerFilter': 'list', 'headerFilterParams': {'valuesLookup': True}, 'headerFilterFunc': 'in'},
{'field': 'D', 'sorter': 'timestamp'}
]
assert model.configuration['selectable'] == True
Expand All @@ -682,8 +682,8 @@ def test_tabulator_header_filters_column_config_select_autocomplete_backwards_co
{'field': 'index', 'sorter': 'number'},
{'field': 'A', 'sorter': 'number'},
{'field': 'B', 'sorter': 'number'},
{'field': 'C', 'headerFilter': 'list', 'headerFilterParams': {'valuesLookup': True}},
{'field': 'D', 'headerFilter': 'list', 'headerFilterParams': {'valuesLookup': True}, 'sorter': 'timestamp'},
{'field': 'C', 'headerFilter': 'list', 'headerFilterParams': {'valuesLookup': True}, 'headerFilterFunc': 'in'},
{'field': 'D', 'headerFilter': 'list', 'headerFilterParams': {'valuesLookup': True}, 'sorter': 'timestamp', 'headerFilterFunc': 'in'},
]
assert model.configuration['selectable'] == True

Expand Down
Loading