Search/filter collumn Button That Toggles text
Search/filter collumn Button That Toggles text

Hello everyone i managed to make a button to filter/search value so i can toggle between 2 values.
Also managed to toggle text in button on click. Here is my sample http://live.datatables.net/xoguzoxa/1/edit
It toggles the yes or no for the last column "Marriage Status"
I would like to put this button next to New/Edit/Delete buttons or put it in a collection button.... but couldn´t make it work.
Can i do this in a better way???
Any help to solve my problem???
This discussion has been closed.
Answers
Hi @Pedro Martins ,
I'd do something like this - this way it keeps DataTables's Buttons all looking the same.
Hope that helps,
Cheers,
Colin
Hello @colin That's spot on what i was trying to do! hehe thanks for all the Help!
But maybe it woould be cool to have the buttons in the header ... i have 5 columns with yes or no in this table i am trying to build.
Was looking to alter this example.
https://datatables.net/extensions/fixedheader/examples/options/columnFiltering.html
instead of the filters, i would have the buttons... will give it a try!
Thanks again @colin