Properties that make up a tree view data item. These properties should be passed in as an object to one of the various tree view component properties which accept TreeViewDataItem as a type.

interface TreeViewDataItem {
    action?: ReactNode;
    badgeProps?: any;
    checkProps?: TreeViewCheckProps;
    children?: TreeViewDataItem[];
    customBadgeContent?: ReactNode;
    defaultExpanded?: boolean;
    expandedIcon?: ReactNode;
    hasBadge?: boolean;
    hasCheckbox?: boolean;
    icon?: ReactNode;
    id?: string;
    name: ReactNode;
    title?: ReactNode;
}

Properties

action?: ReactNode

Action of a tree view item, which can be either a button or dropdown component.

badgeProps?: any

Additional properties of the tree view item badge.

checkProps?: TreeViewCheckProps

Additional properties of the tree view item checkbox.

children?: TreeViewDataItem[]

Child nodes of a tree view item.

customBadgeContent?: ReactNode

Optional prop for a custom badge.

defaultExpanded?: boolean

Flag indicating if node is expanded by default.

expandedIcon?: ReactNode

Expanded icon of a tree view item.

hasBadge?: boolean

Flag indicating if a tree view item has a badge.

hasCheckbox?: boolean

Flag indicating if a tree view item has a checkbox.

icon?: ReactNode

Default icon of a tree view item.

id?: string

ID of a tree view item.

name: ReactNode

Internal content of a tree view item.

title?: ReactNode

Title of a tree view item. Only used in compact presentations.