Constructors
constructor
- new Item(title: string, id: string | number, original?: T | null, htmlTitle?: undefined | string, icon?: undefined | string, multiSelect?: undefined | false | true, nonSelectable?: undefined | false | true): Item
-
Parameters
-
title: string
-
id: string | number
-
Optional original: T | null
-
Optional htmlTitle: undefined | string
-
Optional icon: undefined | string
-
Optional multiSelect: undefined | false | true
-
Optional nonSelectable: undefined | false | true
Properties
multiSelect
multiSelect: boolean
nonSelectable
nonSelectable: boolean
Methods
off
- off(event: string, func: function): this
-
Parameters
-
event: string
-
func: function
Returns this
on
- on(event: string, func: function): this
-
Parameters
-
event: string
-
func: function
Returns this
setChecked
- setChecked(checked: boolean): void
setHtmlTitle
- setHtmlTitle(title: string): void
setSelected
- setSelected(selected: boolean): void
setTitle
- setTitle(title: string): void
Static fromElem
- fromElem<T>(elem: JQuery): Item<T>
-
Type parameters
Parameters
Returns Item<T>
Create item