Documentation

eachColumn

iterates over all visible columns in the table

void eachColumn(function handler, [boolean all] );

Parameters

handlerfunctionthe handler function
allbooleanif true, hidden columns are included into a loop

Example

dtable.eachColumn( 
    function (columnId){ 
        console.log( dtable.getColumnIndex(columnId) )
    }
)

Details
  • The handler function takes column ID as parameter;
  • The order of iteration is the current columns order.
Back to top