Trying to limit search to my first column

Trying to limit search to my first column

jhutch2kjhutch2k Posts: 1Questions: 1Answers: 0
edited July 2017 in Free community support

I am trying to limit the global search to either:
* the first column of the table
* create the ability to search by column
I am generating the table out of a csv

Solved, was passing the data wrong :)

Answers

  • allanallan Posts: 63,480Questions: 1Answers: 10,467 Site admin
    • the first column of the table

    Mark all other columns as not searchable with columns.searchable.

    • create the ability to search by column

    column().search().

    Allan

  • allanallan Posts: 63,480Questions: 1Answers: 10,467 Site admin

    Solved, was passing the data wrong

    Missed that. Good to hear.

    Allan

This discussion has been closed.