Custom filter buttons?
Custom filter buttons?
mrogers
Posts: 15Questions: 4Answers: 0
I want to set up something like this:
http://newsonaut.com/datatable/
There would be four buttons at the top that would act as filters on the second column.
Anyone know how?
This question has an accepted answers - jump to answer
This discussion has been closed.
Answers
....or you could use this:
http://datatables.net/examples/api/multi_filter_select.html
I would suggest the
column().search()
method. Simply attach an event handler to the links that will trigger a call to that method, with he search term you want (possibly reading from adata
attribute in the link, or the link text itself if you wanted):You might want to add an
id
to the list so make sure no other lists are included in it in future.Allan
In case it helps someone else, here's what worked for me: