@gridstorm/plugin-tree-data
v0.1.2
Published
Tree data plugin for GridStorm — hierarchical parent-child row display
Maintainers
Readme
@gridstorm/plugin-tree-data
Hierarchical parent-child row display for GridStorm.
Enterprise Plugin -- Requires a GridStorm license key.
Install
npm install @gridstorm/plugin-tree-data @gridstorm/core @gridstorm/licenseUsage
import { setLicenseKey } from '@gridstorm/license';
import { createGridEngine } from '@gridstorm/core';
import { TreeDataPlugin } from '@gridstorm/plugin-tree-data';
setLicenseKey('YOUR_LICENSE_KEY');
const engine = createGridEngine({
columnDefs: [
{ field: 'name' },
{ field: 'size', type: 'number' },
],
rowData: fileSystemData,
plugins: [TreeDataPlugin({ childrenField: 'children' })],
});Features
- Display hierarchical data with expand/collapse
- Configurable children field
- Indentation based on nesting depth
- Programmatic expand/collapse all
- Lazy loading of child nodes
Documentation
Tree Data Guide | API Reference
License
Commercial -- Enterprise License Required
