I want a table to populate with certain rows supressed

I want a table to populate with certain rows supressed

copenblendcopenblend Posts: 1Questions: 1Answers: 0

So I have approx 1600 records, I want rows with the tag "Hidden", to be hidden (tags are being pulled in from a json).

The 4th column is where the tags are located.

I am trying this to access the data (the part I am having a hard time with)

table.rows.every(function() {
var data = this.column(4).data();
console.log(data);
});

this is the log;

[context: Array[1], selector: Object, ajax: Object]

I have no idea where to do from here.

Answers

  • allanallan Posts: 61,726Questions: 1Answers: 10,109 Site admin

    I would suggest using a column search - column().search() for example. Use a regular expression to make it search for not Hidden.

    Allan

This discussion has been closed.