what are the values of tableLoop & rowLoop in rows.every() and others?
what are the values of tableLoop & rowLoop in rows.every() and others?
kdubs
Posts: 1Questions: 1Answers: 0
I've seen rowLoop and similiar named variables in various APIs, but I haven't seen a clear definition of what they are. please explains.
Answers
Hi,
The DataTables API is multi-table aware - i.e. with a single API instance you can control and manipulate multiple DataTables. It isn't a common thing to do, but it is possible. I think if I were designing the API again, I probably wouldn't do it that way.
The reason I mention that is that it explains what
tableLoop
is - for each table the callback runs on it increments by one. TherowLoop
is likewise a counter, in this case incrementing by one for each row that the callback is called for (resetting if there are multiple tables).It is very rare that those two parameters are actually useful...
Allan