How do I make custom filters?

How do I make custom filters?

blaxusblaxus Posts: 7Questions: 0Answers: 0
edited November 2011 in DataTables 1.8
How do I use separate filters? Much like in Battlelog. For example, I have a data table from the database, and I want the user to be able to hide results based on click-able filters, such as 'Region' (US, EU, Asia, Africa) Etc. And then it would only show the results from the chosen region.

Replies

  • allanallan Posts: 63,498Questions: 1Answers: 10,470 Site admin
    This example might be of some use: http://datatables.net/release-datatables/examples/api/multi_filter_select.html , as might these plugins:

    https://github.com/cyberhobo/ColumnFilterWidgets
    http://jquery-datatables-column-filter.googlecode.com/svn/trunk/index.html

    Basically it all revolves around the use of the fnFilter API method.

    Allan
  • blaxusblaxus Posts: 7Questions: 0Answers: 0
    edited November 2011
    Thanks, that really helped. For some reason I can't get the first one to work though.

    Is there any way to create these dropdowns seperate from the table?
    And also fill have in custom items in the dropdown and still have it work to filter the table?
This discussion has been closed.