SuggestModal

SuggestModal class

Signature:

export abstract class SuggestModal<T> extends Modal implements ISuggestOwner<T> 

Extends: Modal

Implements: ISuggestOwner<T>

Constructors

ConstructorModifiersDescription
(constructor)(app)Constructs a new instance of the SuggestModal class

Properties

PropertyModifiersTypeDescription
appApp

(Inherited from Modal)

containerElHTMLElement

(Inherited from Modal)

contentElHTMLElement

(Inherited from Modal)

emptyStateTextstring
inputElHTMLInputElement
limitnumber
modalElHTMLElement

(Inherited from Modal)

resultContainerElHTMLElement
scopeScope

(Inherited from Modal)

shouldRestoreSelectionboolean

(Inherited from Modal)

titleElHTMLElement

(Inherited from Modal)

Methods

MethodModifiersDescription
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)