Configuration
Tree

Tree

When tree is configured, the grid groups will be displayed in a tree structure.

The tree structure will render each group as a tree level, and use the field property to display the last leaf

Properties

export interface TreeConstructor {
  name?: string;
  showOriginal?: boolean;
  field?: string;
  width?: number;
  menu?: Partial<MenuProps>;
}

name

PropertyTypeDefaultDescription
namestringThe name of the column

This name will be used as tree column name.

showOriginal

PropertyTypeDefaultDescription
showOriginalbooleanfalseShow the original column

When showOriginal is true, the original column will be displayed in the grid.

field

PropertyTypeDefaultDescription
fieldstringThe field to display

The field property is used to display the last leaf of the tree.

width

PropertyTypeDefaultDescription
widthnumber150The width of the column

The width property is used to set the width of the column.

menu

PropertyTypeDefaultDescription
menuPartial<MenuProps>The menu configuration

The menu property is used to configure the menu of the column.

Example

Check a live example here