Skip to content

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
dtable.eachColumn(
function(columnId, columnConfig) {
console.log(dtable.getColumnIndex(columnId), columnConfig)
}
)
  • The handler function takes the column ID and column config as parameters.
  • The order of iteration is the current columns order.