Options
All
  • Public
  • Public/Protected
  • All
Menu

Class List<T>

Type parameters

Hierarchy

Implements

Index

Methods

addClass

  • addClass(cls: string): this

addItem

  • addItem(item: T, noStyleUpdate: boolean, icon: string, disabled?: undefined | false | true): JQuery
  • Parameters

    • item: T
    • noStyleUpdate: boolean
    • icon: string
    • Optional disabled: undefined | false | true

    Returns JQuery

addSeparator

  • addSeparator(): void
  • Returns void

buildInit

css

  • css(css: object): this
  • Parameters

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

    Returns this

getElem

  • getElem(): JQuery

getItems

  • getItems(asInst?: undefined | false | true): JQuery[] | T[]
  • Parameters

    • Optional asInst: undefined | false | true

    Returns JQuery[] | T[]

getItemsLi

  • getItemsLi(): JQuery[]
  • Returns JQuery[]

getLastSelected

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

getLastSelectedLi

  • getLastSelectedLi(): JQuery | null
  • Returns JQuery | 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

removeAllItems

  • removeAllItems(): void
  • Returns void

removeClass

  • removeClass(cls: string): this

selectFirst

  • selectFirst(): void
  • Returns void

selectItemLi

  • selectItemLi(li: JQuery): void
  • Parameters

    • li: JQuery

    Returns void

setEnabled

  • setEnabled(enabled: boolean): void

setItemIcon

  • setItemIcon(li: HTMLElement | JQuery, icon: string): void
  • Parameters

    • li: HTMLElement | JQuery
    • icon: string

    Returns void

setItemLiEnabled

  • setItemLiEnabled(li: JQuery, enabled: boolean): void
  • Parameters

    • li: JQuery
    • enabled: boolean

    Returns void

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(value: T[]): void
  • Parameters

    • value: 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