Combine multiple API instances to create a single new instance.
concat() method will combine the result set of two or more DataTables API instances into a single API instance.
Array.prototype.concat method and is provided as a utility method for the DataTables API. For more information about the original method, please refer to the Mozilla MDN documentation for
function concat( a [, b [, ... ] ] )
Concatenate two or more API instances together
Name Type Optional 1
API instance to concatenate to the initial instance.
Yes - default:
Additional API instance(s) to concatenate to the initial instance.
New API instance with the values from all pass in instances concatenated into its result set.
Concat data from two sources:
var table = $('#example').DataTable(); var data = table.column( 0 ).data() .concat( table.column( 1 ).data );