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
If you have not checked yet, be sure to visit site of our main product Webix ui component library and page of datagrid javascript product.