this.data().DESIREDITEM .. what is the real value for DESIREDITEM .. here ?
this.data().DESIREDITEM .. what is the real value for DESIREDITEM .. here ?
table.rows().every (function (rowIdx, tableLoop, rowLoop) {
if (this.data().DESIREDITEM === DESIREDVALUE) {
this.select ();
}
});
I found above code in one of the datatable Q/A, can some one please let me know what should be the DESIREDITEM value. means what I need to write this.data().?? to access a column value .. ?
Answers
The
DESIREDITEM
is a data property defined in that example. So you would replace it with the data property of interest in your table. Maybe you can post a link to the example you are referencing and give more details of what you are trying to do and your Datatables config.Kevin