UNPKG

primeng

Version:

PrimeNG is an open source UI library for Angular featuring a rich set of 80+ components, a theme designer, various theme alternatives such as Material, Bootstrap, Tailwind, premium templates and professional support. In addition, it integrates with PrimeB

83 lines (82 loc) 1.68 kB
/** * Represents a node in a tree data structure. * @group Interface */ export interface TreeNode<T = any> { checked?: boolean; /** * Label of the node. */ label?: string; /** * Data represented by the node. */ data?: T; /** * Icon of the node to display next to content. */ icon?: string; /** * Icon to use in expanded state. */ expandedIcon?: string; /** * Icon to use in collapsed state. */ collapsedIcon?: string; /** * An array of treenodes as children. */ children?: TreeNode<T>[]; /** * Specifies if the node has children. Used in lazy loading. * @defaultValue false */ leaf?: boolean; /** * Expanded state of the node. * @defaultValue false */ expanded?: boolean; /** * Type of the node to match a template. */ type?: string; /** * Parent of the node. */ parent?: TreeNode<T>; /** * Defines if value is partially selected. */ partialSelected?: boolean; /** * Inline style of the node. */ style?: any; /** * Style class of the node. */ styleClass?: string; /** * Defines if the node is draggable. */ draggable?: boolean; /** * Defines if the node is droppable. */ droppable?: boolean; /** * Whether the node is selectable when selection mode is enabled. * @defaultValue false */ selectable?: boolean; /** * Mandatory unique key of the node. */ key?: string; /** * Mandatory unique key of the node. */ loading?: boolean; }