Options
All
  • Public
  • Public/Protected
  • All
Menu

Type parameters

Hierarchy

  • default
    • SearchBox

Index

Constructors

Properties

node: HTMLElement
EVENT_SELECT: "select" = 'select'

Accessors

Methods

  • createEventList(): string[]
  • fire(type: string | string[], ...args: any[]): void
  • focus(): void
  • forward(from: IEventHandler, ...types: string[]): void
  • forwards one or more events from a given dispatcher to the current one i.e. when one of the given events is fired in 'from' it will be forwarded to all my listeners

    Parameters

    • from: IEventHandler

      the event dispatcher to forward from

    • Rest ...types: string[]

      the event types to forward

    Returns void

  • listenersChanged(_type: string, _active: boolean): void
  • helper function that will be called upon a listener has changed

    Parameters

    • _type: string

      event type

    • _active: boolean

      registered or de registered

    Returns void

  • on(type: "select", listener: (item: any) => void): SearchBox<T>
  • on(type: string | string[], listener: IEventListener): SearchBox<T>
  • unforward(from: IEventHandler, ...types: string[]): void
  • removes the forwarding declarations

    Parameters

    • from: IEventHandler

      the originated dispatcher

    • Rest ...types: string[]

      event types to forward

    Returns void