eachColumn
iterates over all visible columns in the table
void eachColumn(function handler, [boolean all] );
| handler | function | the handler function |
| all | boolean | if 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
Join Our Forum
We've retired comments here. Visit our forum for faster technical support,
connect with other developers, and share your feedback there.