DataTable.ext.iApiIndex is always 0?
DataTable.ext.iApiIndex is always 0?
I see DataTable.ext.iApiIndex is not assigned/set anywhere, but it's used from other functions as the index of this table:
[code]
/**
* Index for what 'this' index API functions should use
* @type int
* @default 0
*/
"iApiIndex": 0,
[/code]
It's used like this:
[code]
var oSettings = _fnSettingsFromNode( this[DataTable.ext.iApiIndex] );
[/code]
So, http://jsfiddle.net/royling/uNvT4/7/ - I only get the result as 4 instead of 8.
Allan,
Can you help?
Regards,
Roy
[code]
/**
* Index for what 'this' index API functions should use
* @type int
* @default 0
*/
"iApiIndex": 0,
[/code]
It's used like this:
[code]
var oSettings = _fnSettingsFromNode( this[DataTable.ext.iApiIndex] );
[/code]
So, http://jsfiddle.net/royling/uNvT4/7/ - I only get the result as 4 instead of 8.
Allan,
Can you help?
Regards,
Roy
This discussion has been closed.
Replies
If you want all of the cells from the tables you've need to change iApiIndex, or get the DataTables object for each table instance individually.
DataTables 1.10's new API is going to significantly change this - it will work over multiple tables by default, much as you are expecting in your demo. The 1.9- API is rather deficient in this area and one of the reasons for the new API being developed :-)
Allan
Allan