Skip to main content
Version: 1.0.4

ITreeViewSchema

@spartanfx/react v1.0.4


@spartanfx/react / ITreeViewSchema

Interface: ITreeViewSchema<T>

Schema configuration for mapping item fields to tree structure.

Supports both flat (id/parentId) and nested (children) data structures.

Type Parameters

T

T = any

Properties

PropertyTypeDescription
childrenField?string | keyof TField name for nested children array. If provided, expects nested structure
idField?string | keyof TField name for the unique identifier. Defaults to 'id'
labelField?string | keyof TField name for the display label. Defaults to 'label'
parentIdField?string | keyof TField name for the parent ID. Defaults to 'parentId'