Interface DynaTreeNode

Index

Properties

Methods

Properties

public data: DynaTreeDataModel

Methods

public activate()

public activateSilently()

public addChild(nodeData: DynaTreeDataModel, beforeNode?: DynaTreeNode)

Parameters

public addChild(nodeData: DynaTreeDataModel[], beforeNode?: DynaTreeNode)

Parameters

public appendAjax(ajaxOptions: JQueryAjaxSettings)

Parameters

public countChildren(): number

Returns

number

public deactivate()

public expand(flag: string)

Parameters

  • flag: string

public focus()

public getChildren(): DynaTreeNode[]

Returns

DynaTreeNode[]

public getEventTargetType(event: Event): string

Parameters

  • event: Event

Returns

string

public getLevel(): number

Returns

number

public getNextSibling(): DynaTreeNode

Returns

DynaTreeNode

public getParent(): DynaTreeNode

Returns

DynaTreeNode

public getPrevSibling(): DynaTreeNode

Returns

DynaTreeNode

public hasChildren(): boolean

Returns

boolean

public isActive(): boolean

Returns

boolean

public isChildOf(otherNode: DynaTreeNode): boolean

Parameters

Returns

boolean

public isDescendantOf(otherNode: DynaTreeNode): boolean

Parameters

Returns

boolean

public isExpanded(): boolean

Returns

boolean

public isFirstSibling(): boolean

Returns

boolean

public isFocused(): boolean

Returns

boolean

public isLastSibling(): boolean

Returns

boolean

public isLazy(): boolean

Returns

boolean

public isLoading(): boolean

Returns

boolean

public isSelected(): boolean

Returns

boolean

public isStatusNode(): boolean

Returns

boolean

public isVisible(): boolean

Returns

boolean

public makeVisible(): boolean

Returns

boolean

public move(targetNode: DynaTreeNode, mode: string): boolean

Parameters

Returns

boolean

public reload(force: boolean)

Parameters

  • force: boolean

public reloadChildren(callback?: (node: DynaTreeNode, isOk: boolean) => any)

Parameters

  • callback?: (node: DynaTreeNode, isOk: boolean) => any optional

public remove()

public removeChildren()

public render(useEffects: boolean, includeInvisible: boolean)

Parameters

  • useEffects: boolean
  • includeInvisible: boolean

public resetLazy()

public scheduleAction(mode: string, ms: number): any

Parameters

  • mode: string
  • ms: number

Returns

any

public select(flag: string)

Parameters

  • flag: string

public setLazyNodeStatus(status: number)

Parameters

  • status: number

public setTitle(title: string)

Parameters

  • title: string

public sortChildren(cmp?: (a: DynaTreeNode, b: DynaTreeNode) => number, deep?: boolean): any

Parameters

  • cmp?: (a: DynaTreeNode, b: DynaTreeNode) => number optional
  • deep?: boolean optional

Returns

any

public toDict(recursive: boolean, callback?: (node: any) => any): any

Parameters

  • recursive: boolean
  • callback?: (node: any) => any optional

Returns

any

public toggleExpand()

public toggleSelect()

public visit(fn: (node: DynaTreeNode) => boolean, includeSelf: boolean)

Parameters

  • fn: (node: DynaTreeNode) => boolean
  • includeSelf: boolean

public visitParents(fn: (node: DynaTreeNode) => boolean, includeSelf: boolean)

Parameters

  • fn: (node: DynaTreeNode) => boolean
  • includeSelf: boolean