AbstractInputSuggest

AbstractInputSuggest class

Attach to an <input> element or a <div contentEditable> to add type-ahead support.

Signature:

export abstract class AbstractInputSuggest<T> extends PopoverSuggest<T> 

Extends: PopoverSuggest<T>

Constructors

ConstructorModifiersDescription
(constructor)(app, textInputEl)Accepts an <input> text box or a contenteditable div.

Properties

PropertyModifiersTypeDescription
appApp

(Inherited from PopoverSuggest)

limitnumberLimit to the number of elements rendered at once. Set to 0 to disable. Defaults to 100.
scopeScope

(Inherited from PopoverSuggest)

Methods

MethodModifiersDescription
close()

(Inherited from PopoverSuggest)

getSuggestions(query)

protected

abstract

getValue()Gets the value from the input element.
onSelect(callback)Registers a callback to handle when a suggestion is selected by the user.
open()

(Inherited from PopoverSuggest)

renderSuggestion(value, el)abstract

(Inherited from PopoverSuggest)

selectSuggestion(value, evt)
setValue(value)Sets the value into the input element.