eachColumn
iterates over all visible columns in the grid
function eachColumn( // the handler function handler: function, // if true, hidden columns are included into a loop all?: boolean): void
Example
Section titled “Example”dtable.eachColumn( function(columnId, columnConfig) { console.log(dtable.getColumnIndex(columnId), columnConfig) })
Details
Section titled “Details”- The handler function takes the column ID and column config as parameters.
- The order of iteration is the current columns order.