vedmack / yadcf

Yet Another DataTables Column Filter (yadcf)
http://yadcf-showcase.appspot.com/
MIT License
732 stars 284 forks source link

Feature Request: dependent select based on column(s) filter #577

Open louking opened 5 years ago

louking commented 5 years ago

Idea is to have select or multiselect values based on the filters currently set in one or more columns. Column parameter syntax would be similar to dependent: <column_selector> or dependent: [<column_selector>, ...]. Possibly column_selector needs to be limited to certain types, e.g., column number (index selector), {string}:name, string [jQuery selector], as not quite sure how dataTables columns() function will behave in other circumstances.

The dependent parameter would/could only be used on columns whose filter_type is select or multi_select.

Starting to research what it would take to supply PR for this -- I think need to do following, but any guidance would be appreciated.

On initialization,

On dependent column change

ref https://stackoverflow.com/questions/56224236/want-yadcf-filter-multiselect-options-based-on-another-filter-value