FuzzySuggestModal
Extends
Type Parameters
• T
Constructors
new FuzzySuggestModal()
new FuzzySuggestModal<
T
>(app
):FuzzySuggestModal
<T
>
Parameters
• app: App
Returns
Inherited from
Properties
app
app:
App
Inherited from
containerEl
containerEl:
HTMLElement
Inherited from
contentEl
contentEl:
HTMLElement
Inherited from
ctaEl
ctaEl:
HTMLDivElement
Inherited from
emptyStateText
emptyStateText:
string
Inherited from
inputEl
inputEl:
HTMLInputElement
Inherited from
limit
limit:
number
Inherited from
modalEl
modalEl:
HTMLElement
Inherited from
resultContainerEl
resultContainerEl:
HTMLElement
Inherited from
SuggestModal
.resultContainerEl
scope
scope:
Scope
Inherited from
shouldAnimate
shouldAnimate:
boolean
Whether the modal should animate
Inherited from
shouldRestoreSelection
shouldRestoreSelection:
boolean
Inherited from
SuggestModal
.shouldRestoreSelection
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
getItems()
abstract
getItems():T
[]
Returns
T
[]
getItemText()
abstract
getItemText(item
):string
Parameters
• item: T
Returns
string
getSuggestions()
getSuggestions(
query
):FuzzyMatch
<T
>[]
Parameters
• query: string
Returns
FuzzyMatch
<T
>[]
Overrides
onChooseItem()
abstract
onChooseItem(item
,evt
):void
Parameters
• item: T
• evt: MouseEvent
| KeyboardEvent
Returns
void
onChooseSuggestion()
onChooseSuggestion(
item
,evt
):void
Parameters
• item: FuzzyMatch
<T
>
• evt: MouseEvent
| KeyboardEvent
Returns
void
Overrides
SuggestModal
.onChooseSuggestion
onClose()
onClose():
void
Returns
void
Inherited from
onNoSuggestion()
onNoSuggestion():
void
Returns
void
Inherited from
onOpen()
onOpen():
void
Returns
void
Inherited from
open()
open():
void
Returns
void
Inherited from
renderSuggestion()
renderSuggestion(
item
,el
):void
Parameters
• item: FuzzyMatch
<T
>
• el: HTMLElement
Returns
void
Overrides
selectActiveSuggestion()
selectActiveSuggestion(
evt
):void
Parameters
• evt: MouseEvent
| KeyboardEvent
Returns
void
Inherited from
SuggestModal
.selectActiveSuggestion
selectSuggestion()
selectSuggestion(
value
,evt
):void
Parameters
• value: FuzzyMatch
<T
>
• evt: MouseEvent
| KeyboardEvent
Returns
void
Inherited from
setContent()
setContent(
content
):this
Parameters
• content: string
| DocumentFragment
Returns
this
Inherited from
setInstructions()
setInstructions(
instructions
):void
Parameters
• instructions: Instruction
[]
Returns
void
Inherited from
setPlaceholder()
setPlaceholder(
placeholder
):void
Parameters
• placeholder: string
Returns
void
Inherited from
setTitle()
setTitle(
title
):this
Parameters
• title: string
Returns
this