I am tying to use the YADCF extension so that I can sort the data in my table by it's status. I want to be able to click a button (bootstrap pills) and for that to then be the trigger for filtering the data, however I can't figure out how to do so. Below you can see an example from WHMCS, this is what I wish to happen
Currently I have been able to filter the data but only by using a select drop down. As you can see below, this is how my table and buttons look (including the added Select element from YADCF)
I was able to have the Select element work fully, but what I am asking is: how can I get each individual button/pill trigger a filter for each type of status?
This is the code I have for the table so far
yadcf.init(ticketsTable, [
{
column_number: 2,
filter_container_id: 'test_container_0',
column_data_type: "html",
html_data_type: "text",
filter_default_label: "Select Status"
},
],
{
externally_triggered: false
}
);
Any help at all would be greatly appreciated.