data-filter for searchpanes

data-filter for searchpanes

tacman1123tacman1123 Posts: 211Questions: 47Answers: 1

I'd like the searchpanes data from my html table to not be the rendered td contents but rather other data. In particular, my cell data is linked, which breaks the searchpanes click functionality.

https://jsfiddle.net/tacman1123/a1sfzdwb/2/

I want to get rid of the link in the searchpanes, I thought maybe adding a data-filter attribute would work, but it didn't. Is there another data- attribute to use?

Answers

  • tacman1123tacman1123 Posts: 211Questions: 47Answers: 1

    It seems like data-display might be a good candidate. That doesn't work either, though.

    I'm not sure datapanes should ever render a link in the pane, since it will fire instead of filtering the table by that facet.

  • kthorngrenkthorngren Posts: 21,483Questions: 26Answers: 4,978

    Each SearchPanes is a separate Datatable so the data-filter attribute on the main table won't apply. I don't believe SearchPanes evaluates the cell data to determine what to make decisions of what to do with it, ie not make it a link. You can do this using columns.searchPanes.orthogonal. Updated example:
    https://jsfiddle.net/zjqc57u8/

    Kevin

Sign In or Register to comment.