File

src/treeview/tree-node.types.ts

Index

Properties

Indexable

[key: string]: any

Properties

active
active: boolean
Type : boolean
Optional
children
children: Node[]
Type : Node[]
Optional
disabled
disabled: boolean
Type : boolean
Optional
expanded
expanded: boolean
Type : boolean
Optional
gap
gap: number
Type : number
Optional
icon
icon: string | TemplateRef<any>
Type : string | TemplateRef<any>
Optional
iconContext
iconContext: any
Type : any
Optional
id
id: string
Type : string
Optional
label
label: string | TemplateRef<any>
Type : string | TemplateRef<any>
labelContext
labelContext: any
Type : any
Optional
selectable
selectable: boolean
Type : boolean
Optional
selected
selected: boolean
Type : boolean
Optional
value
value: any
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;
}

results matching ""

    No results matching ""