ChevronCell template

ChevronCell contains data about a single node in the tree structure of the data. This cell template renders text with the preceding chevron.

Implementation of grouping functionality remains on developer (e.g., creating tree structure of cells, filtering rows available to display, creating indents).

hasChildren field is necessary to display ChevronCell.

Implementation

  • Open ChevronCell implementation on github

Interface declaration

interface ChevronCell extends Cell {
    type: 'chevron';
    text: string;
    isExpanded?: boolean;
    hasChildren?: boolean;
    parentId?: Id;
    indent?: number;
}
Property nameTypeProperty description
typechevronType of cell template
textstringText of cell content
isExpanded?booleanIs node expaned (displays chevron char as opened/closed)
hasChildren?booleanDetermines if a node element has children
parentId? Id Id of parent node (cell), if undefined the node becomes a root
indent?numberIndent size of cell content