Hierarchy

Index

Constructors

constructor

Properties

Private _prevState

_prevState: OptionState

Private _state

_state: OptionState

completion

completion: string

Protected lastFocused

lastFocused: CompletionOption

node

node: HTMLElement

options

options: CompletionOption[]

Protected prefixes

prefixes: string[] = []

Accessors

state

  • get state(): "normal" | "focused" | "hidden"
  • set state(newstate: OptionState): void

Methods

deselect

  • deselect(): void

Abstract filter

  • filter(exstr: string): Promise<void>
  • Update node to display completions relevant to exstr

    Parameters

    • exstr: string

    Returns Promise<void>

Abstract next

  • next(inc?: number): boolean

prev

  • prev(inc?: number): boolean

shouldRefresh

  • shouldRefresh(): boolean