SuggestModal
Extends
Extended by
Type Parameters
• T
Implements
Constructors
new SuggestModal()
new SuggestModal<
T
>(app
):SuggestModal
<T
>
Parameters
• app: App
Returns
SuggestModal
<T
>
Overrides
Properties
app
app:
App
Inherited from
containerEl
containerEl:
HTMLElement
Inherited from
contentEl
contentEl:
HTMLElement
Inherited from
ctaEl
ctaEl:
HTMLDivElement
emptyStateText
emptyStateText:
string
inputEl
inputEl:
HTMLInputElement
limit
limit:
number
modalEl
modalEl:
HTMLElement
Inherited from
resultContainerEl
resultContainerEl:
HTMLElement
scope
scope:
Scope
Inherited from
shouldAnimate
shouldAnimate:
boolean
Whether the modal should animate
Inherited from
shouldRestoreSelection
shouldRestoreSelection:
boolean
Inherited from
titleEl
titleEl:
HTMLElement
Inherited from
win
win:
null
|Window
Reference to the global Window object
Inherited from
Methods
close()
close():
void
Returns
void
Inherited from
getSuggestions()
abstract
getSuggestions(query
):T
[] |Promise
<T
[]>
Parameters
• query: string
Returns
T
[] | Promise
<T
[]>
onChooseSuggestion()
abstract
onChooseSuggestion(item
,evt
):void
Parameters
• item: T
• evt: MouseEvent
| KeyboardEvent
Returns
void
onClose()
onClose():
void
Returns
void
Inherited from
onNoSuggestion()
onNoSuggestion():
void
Returns
void
onOpen()
onOpen():
void
Returns
void
Inherited from
open()
open():
void
Returns
void
Inherited from
renderSuggestion()
abstract
renderSuggestion(value
,el
):void
Parameters
• value: T
• el: HTMLElement
Returns
void
Implementation of
ISuggestOwner
.renderSuggestion
Inherited from
ISuggestOwner
.renderSuggestion
selectActiveSuggestion()
selectActiveSuggestion(
evt
):void
Parameters
• evt: MouseEvent
| KeyboardEvent
Returns
void
selectSuggestion()
selectSuggestion(
value
,evt
):void
Parameters
• value: T
• evt: MouseEvent
| KeyboardEvent
Returns
void
Implementation of
ISuggestOwner
.selectSuggestion
Inherited from
ISuggestOwner
.selectSuggestion
setContent()
setContent(
content
):this
Parameters
• content: string
| DocumentFragment
Returns
this
Inherited from
setInstructions()
setInstructions(
instructions
):void
Parameters
• instructions: Instruction
[]
Returns
void
setPlaceholder()
setPlaceholder(
placeholder
):void
Parameters
• placeholder: string
Returns
void
setTitle()
setTitle(
title
):this
Parameters
• title: string
Returns
this