v7.3.0
SupportExamplesFree Trial

TreeColumnMixin
Mixin

A mixin that adds tree rendering capabilities to any column type. Applied automatically when a column config includes tree: true.

This mixin extracts all tree rendering logic from TreeColumn, allowing any column type (e.g., ResourceInfoColumn, CheckColumn) to display tree structure when configured with tree: true.

Usage

const grid = new TreeGrid({
    columns : [
        // Any column type can now be a tree column
        { type : 'resourceInfo', tree : true, field : 'name' },
        { type : 'check', tree : true, field : 'done' }
    ]
});

See also

No results

Configs

Configs are options you supply in a configuration object when creating an instance of this class

Properties

Properties are getters/setters or publicly accessible variables on this class

Functions

Functions are methods available for calling on the class
    • treeRenderer( )
      private

      A column renderer that is automatically added to the column with { tree: true }. It adds padding and node icons to the cell to make the grid appear to be a tree. The original renderer is called in the process.

    Source path

    Grid/column/mixin/TreeColumnMixin.js

    Contents