Hierarchy

Index

Constructors

constructor

Properties

Private _parent

_parent: any

completion

completion: string

fuse

fuse: any = undefined

Protected lastExstr

lastExstr: string

Protected lastFocused

lastFocused: CompletionOption

node

node: any

Protected optionContainer

optionContainer: HTMLElement = html`<table class="optionContainer"></table>`

options

Protected prefixes

prefixes: string[] = []

Protected sortScoredOptions

sortScoredOptions: boolean = false

Accessors

state

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

Methods

deselect

  • deselect(): void

filter

  • filter(exstr: string): Promise<void>

next

  • next(inc?: number): Promise<any>

onInput

  • onInput(exstr: string): Promise<void>

prev

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

Private scoreOptions

  • scoreOptions(query: string, n: number): Promise<{ title: string; url: string }[]>

scoredOptions

select

setStateFromScore

  • setStateFromScore(scoredOpts: ScoredOption[], autoselect?: boolean): void

shouldRefresh

  • shouldRefresh(): boolean

splitOnPrefix

  • splitOnPrefix(exstr: string): string[]

updateChain

  • updateChain(): void

updateDisplay

  • updateDisplay(): void

Object literals

fuseOptions

fuseOptions: object

includeScore

includeScore: boolean = true

keys

keys: string[] = ["fuseKeys"]

shouldSort

shouldSort: boolean = true