Options
All
  • Public
  • Public/Protected
  • All
Menu

Class CompletionSourceFuse

Hierarchy

Index

Constructors

constructor

Properties

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">`

options

Private prefixes

prefixes: any

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

onInput

  • onInput(exstr: string): any

prev

  • prev(inc?: number): boolean

scoredOptions

select

setStateFromScore

  • setStateFromScore(scoredOpts: ScoredOption[], autoselect?: boolean): void
  • Set option state by score

    For now just displays all scored elements (see threshold in fuse) and focus the best match.

    Parameters

    • scoredOpts: ScoredOption[]
    • Default value autoselect: boolean = false

    Returns void

splitOnPrefix

  • splitOnPrefix(exstr: string): any[]

updateChain

updateDisplay

  • updateDisplay(): void

Object literals

fuseOptions

fuseOptions: object

id

id: string = "index"

includeScore

includeScore: boolean = true

keys

keys: string[] = ["fuseKeys"]

shouldSort

shouldSort: boolean = true

Generated using TypeDoc