SuggestModal class
Signature:
export abstract class SuggestModal<T> extends Modal implements ISuggestOwner<T> Extends: Modal
Implements: ISuggestOwner<T>
Constructors
| Constructor | Modifiers | Description |
|---|---|---|
(constructor)(app) | Constructs a new instance of the SuggestModal class |
Properties
| Property | Modifiers | Type | Description |
|---|---|---|---|
app | App | (Inherited from Modal) | |
containerEl | HTMLElement | (Inherited from Modal) | |
contentEl | HTMLElement | (Inherited from Modal) | |
emptyStateText | string | ||
inputEl | HTMLInputElement | ||
limit | number | ||
modalEl | HTMLElement | (Inherited from Modal) | |
resultContainerEl | HTMLElement | ||
scope | Scope | (Inherited from Modal) | |
shouldRestoreSelection | boolean | (Inherited from Modal) | |
titleEl | HTMLElement | (Inherited from Modal) |
Methods
| Method | Modifiers | Description |
|---|---|---|
close() | Hide the modal. (Inherited from Modal) | |
getSuggestions(query) | abstract | |
onChooseSuggestion(item, evt) | abstract | |
onClose() | (Inherited from Modal) | |
onNoSuggestion() | ||
onOpen() | (Inherited from Modal) | |
open() | Show the modal on the the active window. On mobile, the modal will animate on screen. (Inherited from Modal) | |
renderSuggestion(value, el) | abstract | |
selectActiveSuggestion(evt) | ||
selectSuggestion(value, evt) | ||
setContent(content) | (Inherited from Modal) | |
setInstructions(instructions) | ||
setPlaceholder(placeholder) | ||
setTitle(title) | (Inherited from Modal) |