panel
panel copied to clipboard
Misc header filters issues
Follow-up on #2807
The 'autocomplete' filter doesn't actually filter the column.
If I switch to a dropdown filter (there should be an example of that :)), I can filter the column but I can't clear the filter.
It might be a limitation of Tabulator, I can't clear the Gender filter on their interactive demo: http://tabulator.info/examples/4.9?#filter-header
I have also noticed that if a table has a frozen row, it gets filtered out, which I think defeats the purpose of freezing the row.
I have also noticed that if a table has a frozen row, it gets filtered out, which I think defeats the purpose of freezing the row.
Thanks for reporting this but please provide a reproducible example with the exact version you are using.
If I switch to a dropdown filter (there should be an example of that :)), I can filter the column but I can't clear the filter.
The list
Tabulator editor has a clearable
option that should allow to clear the selected value. However it doesn't seem to work currently, see https://github.com/olifolkerd/tabulator/issues/3907
In a similar note the list
type does not accept the mutiselect
option.
table_filters = {
"experiment_type": {"type": "list", "multiselect":"true"},
}
pn_table = pn.widgets.Tabulator(
experiments_df[["experiment_type"]],
pagination="remote",
page_size=30,
sizing_mode="stretch_width",
header_filters=table_filters
)
pn_table.show()
@dslemusp this will be documented in the next version of Panel (https://github.com/holoviz/panel/pull/5825), you need to see the multiselect filter with func
set to 'in'
.
The first issue I reported in the original post appears to be fixed:
I will open an issue for the second one as it is still an issue.