Options
All
  • Public
  • Public/Protected
  • All
Menu

Class SelectionHandler

Hierarchy

Implements

Index

Constructors

constructor

  • Parameters

    • getMenu: () => IMenu | undefined

    Returns SelectionHandler

Properties

Readonly event

event: IEventEmitter<this, ISelectionHandlerEvents> = new EventEmitter<this, E>(this)

Methods

deselect

  • deselect(): void
  • Returns void

focus

  • Parameters

    Returns void

getSelection

  • getSelection(): undefined | Component<HTMLElement>
  • Returns undefined | Component<HTMLElement>

Protected onCancel

  • onCancel(): boolean
  • Returns boolean

Protected onDown

  • onDown(): boolean
  • Returns boolean

Protected onEnter

  • onEnter(): boolean
  • Returns boolean

Protected onLeft

  • onLeft(): boolean
  • Returns boolean

Protected onNext

  • onNext(): boolean
  • Returns boolean

Protected onPrevious

  • onPrevious(): boolean
  • Returns boolean

Protected onRight

  • onRight(): boolean
  • Returns boolean

Protected onUp

  • onUp(): boolean
  • Returns boolean

select

  • select(component?: Component, focus?: boolean): void
  • Parameters

    • Optional component: Component
    • Default value focus: boolean = true

    Returns void

selectNext

  • selectNext(sound?: boolean): void
  • Parameters

    • Default value sound: boolean = true

    Returns void

selectPrevious

  • selectPrevious(sound?: boolean): void
  • Parameters

    • Default value sound: boolean = true

    Returns void

Generated using TypeDoc