Hierarchy

Index

Constructors

constructor

  • new CompletionSource(prefixes: any, options?: { trailingSpace: boolean }): CompletionSource

Properties

Private _prevState

_prevState: OptionState

Private _state

_state: OptionState

args

args: string

completion

completion: string

Protected lastFocused

lastFocused: CompletionOption

node

node: HTMLElement

Readonly options

options: CompletionOption[]

Protected prefixes

prefixes: string[] = []

trailingSpace

trailingSpace: boolean

Accessors

state

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): Promise<boolean>

prev

  • prev(inc?: number): Promise<boolean>

shouldRefresh

  • shouldRefresh(): boolean