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
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
Returns Item<any>
|
null
removeItem
- removeItem(item: Item<any>): void
setHome
- setHome(isHome: boolean): void
setIcon
- setIcon(icon: string): void
setLink
- setLink(isLink: boolean): 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
Parameters
Returns Item<T>