Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Tree<T, T>

Type parameters

Hierarchy

Implements

Index

Constructors

constructor

  • new Tree(fluid?: boolean | string, rowStyleClass?: string[]): Tree

Properties

fields

fields: object

Methods

addChild

  • addChild(child: T): this

addClass

  • addClass(cls: string): this

applyLayoutCellCss

  • applyLayoutCellCss(idx: number, css: object): this

buildInit

css

  • css(css: object): this
  • Parameters

    • css: object
      • [key: string]: any

    Returns this

getElem

  • getElem(): JQuery

getLastSelected

  • getLastSelected(): T | null
  • Returns T | null

getValue

  • getValue(): T[]
  • Returns T[]

getWrappedControl

  • getWrappedControl(): object | null

off

  • off(event: string, callback: function): this
  • Parameters

    • event: string
    • callback: function
        • (e?: JQueryEventObject): void
        • Parameters

          • Optional e: JQueryEventObject

          Returns void

    Returns this

on

  • on(event: string, callback: function): this
  • Parameters

    • event: string
    • callback: function
        • (e?: JQueryEventObject): void
        • Parameters

          • Optional e: JQueryEventObject

          Returns void

    Returns this

removeAllChildren

  • removeAllChildren(): this

removeChild

  • removeChild(child: T): this

removeClass

  • removeClass(cls: string): this

selectFirst

  • selectFirst(): void
  • Returns void

selectItemLi

  • selectItemLi(li: TreeListItem<T>): void
  • Parameters

    • li: TreeListItem<T>

    Returns void

setEnabled

  • setEnabled(enabled: boolean): void

setSpacing

  • setSpacing(spacing: number): this

setTitle

  • setTitle(title: string): this

setTooltip

  • setTooltip(value: string | boolean, placement?: undefined | string, trigger?: undefined | string): void
  • Parameters

    • value: string | boolean
    • Optional placement: undefined | string
    • Optional trigger: undefined | string

    Returns void

setValue

  • setValue(items: T[]): void
  • Parameters

    • items: T[]

    Returns void

setVisible

  • setVisible(visible: boolean): this

trigger

  • trigger(event: string, extraParameters?: any): this
  • Parameters

    • event: string
    • Optional extraParameters: any

    Returns this

Static wrapControl