Column Filtering ( using Img 'Alt' attribute)

Column Filtering ( using Img 'Alt' attribute)

SurajSuraj Posts: 2Questions: 0Answers: 0
edited May 2012 in Feature requests
Hi Allan,
Data table is not able to filter columns where we use Icons to display values (like 'status') in grid. Is it possible to filter using icon image's 'alt'
attribute.

Your response will be greatly appreciated.

Replies

  • allanallan Posts: 63,498Questions: 1Answers: 10,471 Site admin
    By default DataTables will strip HTML from the filter (so it doesn't sort on tag names for example). If you want to explicitly tell it to filter / sort on an attribute you can use type based plug-ins:

    http://datatables.net/development/filtering
    http://datatables.net/development/sorting

    Allan
This discussion has been closed.