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 name | Type | Property description |
---|---|---|
type | chevron | Type of cell template |
text | string | Text of cell content |
isExpanded? | boolean | Is node expaned (displays chevron char as opened/closed) |
hasChildren? | boolean | Determines if a node element has children |
parentId? | Id | Id of parent node (cell), if undefined the node becomes a root |
indent? | number | Indent size of cell content |