Searching on Header

Searching on Header

AASAAS Posts: 7Questions: 5Answers: 0

Hello,
The table Im using has its relationship on the Y axis, not on the X axis.
I need to use the search function on the table headers and display the matching columns.

Thanks

Answers

  • colincolin Posts: 15,240Questions: 1Answers: 2,599

    Hi @AAS ,

    I suspect you could do this, but you would need to do a few things, such as

    1. have a custom search input element which would manually search the table (either with filter() or column().data() for a match
    2. also consider the column().header() in that search
    3. then hide the columns that don't match with columns().visible()

    Possible, but definitely a few hoops to jump through...

    Cheers,

    Colin

  • AASAAS Posts: 7Questions: 5Answers: 0

    Thanks Colin, I ended up laying my table differently.

This discussion has been closed.