eachColumn

iterates over all visible columns in the table

void eachColumn(function handler, [boolean all] );
handlerfunctionthe handler function
allbooleanif true, hidden columns are included into a loop

Example

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

Details
  • The handler function takes the column ID and column config as parameters.
  • The order of iteration is the current columns order.
Back to top
If you have not checked yet, be sure to visit site of our main product Webix javascript ui framework and page of tree grid ui product.