Jquery data table filter/search icon image in the table

Jquery data table filter/search icon image in the table

weec0008weec0008 Posts: 2Questions: 0Answers: 0
edited October 2013 in General
I have a Jquery data table column with icon image in each cell:

[code]


[/code]

I would like to filter for only [code]class="icon-glass"[/code] and display on the data table. Currently with normal data table initialization, it will not display any data from that column. Is there any customization that needed to filter this kind of data?

For example, [code]class="icon-glass"[/code] will display icon from one of these: http://andymatthews.net/code/jquery-mobile-icon-pack/font-awesome/faicons.png in my data table column. Can I only filter only icon-glass in data table when it is not a word? I would only like to show the following in my table:

[code]
[/code]

Is this possible?

Replies

  • weec0008weec0008 Posts: 2Questions: 0Answers: 0
    Thanks for reading out there, I have solved my own issue by setting another column with a flag that is not visible by browser but is searchable:

    [code]
    glass
    music
    glass
    music
    [/code]

    Setting the second column to as such:

    [code]
    { "bVisible": false }
    [/code]

    Then when search 'glass' in the search, it will do the filter and show the glass icon row. Happy coding!
This discussion has been closed.