src/treeview/tree-node.types.ts
Properties |
|
[key: string]:
|
Defined in src/treeview/tree-node.types.ts:18
|
active |
active:
|
Type : boolean
|
Optional |
children |
children:
|
Type : Node[]
|
Optional |
disabled |
disabled:
|
Type : boolean
|
Optional |
expanded |
expanded:
|
Type : boolean
|
Optional |
gap |
gap:
|
Type : number
|
Optional |
icon |
icon:
|
Type : string | TemplateRef<any>
|
Optional |
iconContext |
iconContext:
|
Type : any
|
Optional |
id |
id:
|
Type : string
|
Optional |
label |
label:
|
Type : string | TemplateRef<any>
|
labelContext |
labelContext:
|
Type : any
|
Optional |
selectable |
selectable:
|
Type : boolean
|
Optional |
selected |
selected:
|
Type : boolean
|
Optional |
value |
value:
|
Type : any
|
Optional |
import { TemplateRef } from "@angular/core";
export interface Node {
label: string | TemplateRef<any>;
labelContext?: any;
value?: any;
id?: string;
active?: boolean;
disabled?: boolean;
// Selectable is only valid for nodes with children.
// If true, the node won't become selected and if clicked it would only expand/compress itself
selectable?: boolean;
expanded?: boolean;
selected?: boolean;
icon?: string | TemplateRef<any>;
iconContext?: any;
gap?: number;
children?: Node[];
[key: string]: any;
}
export interface EventOnNode {
node: Node;
event: Event;
}