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
| Constructor | Modifiers | Description |
|---|---|---|
(constructor)(app, textInputEl) | Accepts an <input> text box or a contenteditable div. |
Properties
| Property | Modifiers | Type | Description |
|---|---|---|---|
app | App | (Inherited from PopoverSuggest) | |
limit | number | Limit to the number of elements rendered at once. Set to 0 to disable. Defaults to 100. | |
scope | Scope | (Inherited from PopoverSuggest) |
Methods
| Method | Modifiers | Description |
|---|---|---|
close() | (Inherited from PopoverSuggest) | |
getSuggestions(query) |
| |
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. |