Trilium Frontend API
Preparing search index...
<internal>
Emitter
Class Emitter<HandlerFuncs>
Type Parameters
HandlerFuncs
extends
HandlerFuncTypeHash
Index
Constructors
constructor
Methods
has
Handlers
off
on
set
Options
set
This
Context
trigger
Constructors
constructor
new
Emitter
<
HandlerFuncs
extends
HandlerFuncTypeHash
>
()
:
Emitter
<
HandlerFuncs
>
Type Parameters
HandlerFuncs
extends
HandlerFuncTypeHash
Returns
Emitter
<
HandlerFuncs
>
Methods
has
Handlers
hasHandlers
(
type
:
keyof
HandlerFuncs
)
:
boolean
Parameters
type
:
keyof
HandlerFuncs
Returns
boolean
off
off
<
Prop
extends
string
|
number
|
symbol
>
(
type
:
Prop
,
handler
?:
HandlerFuncs
[
Prop
]
,
)
:
void
Type Parameters
Prop
extends
string
|
number
|
symbol
Parameters
type
:
Prop
Optional
handler
:
HandlerFuncs
[
Prop
]
Returns
void
on
on
<
Prop
extends
string
|
number
|
symbol
>
(
type
:
Prop
,
handler
:
HandlerFuncs
[
Prop
]
,
)
:
void
Type Parameters
Prop
extends
string
|
number
|
symbol
Parameters
type
:
Prop
handler
:
HandlerFuncs
[
Prop
]
Returns
void
set
Options
setOptions
(
options
:
Partial
<
HandlerFuncs
>
)
:
void
Parameters
options
:
Partial
<
HandlerFuncs
>
Returns
void
set
This
Context
setThisContext
(
thisContext
:
any
)
:
void
Parameters
thisContext
:
any
Returns
void
trigger
trigger
<
Prop
extends
string
|
number
|
symbol
>
(
type
:
Prop
,
...
args
:
Parameters
<
HandlerFuncs
[
Prop
]
>
,
)
:
void
Type Parameters
Prop
extends
string
|
number
|
symbol
Parameters
type
:
Prop
...
args
:
Parameters
<
HandlerFuncs
[
Prop
]
>
Returns
void
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
On This Page
Constructors
constructor
Methods
has
Handlers
off
on
set
Options
set
This
Context
trigger
Trilium Frontend API
Loading...