Options
All
  • Public
  • Public/Protected
  • All
Menu

Type parameters

  • T

Hierarchy

  • Item

Index

Constructors

constructor

  • new Item(title: string, icon?: string | null, original?: T | null, truncateTitle?: undefined | number): Item
  • Parameters

    • title: string
    • Optional icon: string | null
    • Optional original: T | null
    • Optional truncateTitle: undefined | number

    Returns Item

Methods

addItem

  • addItem(item: Item<any>, atIndex?: undefined | number): void
  • Parameters

    • item: Item<any>
    • Optional atIndex: undefined | number

    Returns void

getItem

  • getItem(index: number): Item<any> | null
  • Parameters

    • index: number

    Returns Item<any> | null

getItemCount

  • getItemCount(): number
  • Returns number

getOriginal

  • getOriginal(): T
  • Returns T

getParent

  • getParent(): Item<any>

getTitle

  • getTitle(): string
  • Returns string

isHome

  • isHome(): boolean
  • Returns boolean

isLink

  • isLink(): boolean
  • Returns boolean

isRoot

  • isRoot(): boolean
  • Returns boolean

removeAllItems

  • removeAllItems(): void
  • Returns void

removeItem

  • removeItem(item: Item<any>): void
  • Parameters

    Returns void

setHome

  • setHome(isHome: boolean): void
  • Parameters

    • isHome: boolean

    Returns void

setIcon

  • setIcon(icon: string): void
  • Parameters

    • icon: string

    Returns void

setLink

  • setLink(isLink: boolean): void
  • Parameters

    • isLink: boolean

    Returns void

setTitle

  • setTitle(title: string, truncateTitle?: undefined | number): void
  • Parameters

    • title: string
    • Optional truncateTitle: undefined | number

    Returns void

Static fromElem

  • fromElem<T>(elem: JQuery): Item<T>
  • Type parameters

    • T

    Parameters

    • elem: JQuery

    Returns Item<T>