Trilium Frontend API
Preparing search index...
<internal>
EventImpl
Class EventImpl
Implements
EventApi
Index
Constructors
constructor
Properties
_
context
_
def
_
instance
Accessors
all
Day
allow
class
Name
color
constraint
contrast
Color
display
duration
Editable
end
end
Str
extended
Props
group
Id
id
overlap
source
start
start
Editable
start
Str
title
url
Methods
format
Range
move
Dates
move
End
move
Start
mutate
remove
set
All
Day
set
Dates
set
End
set
Extended
Prop
set
Prop
set
Start
to
JSON
to
Plain
Object
Constructors
constructor
new
EventImpl
(
context
:
CalendarContext
,
def
:
EventDef
,
instance
?:
EventInstance
,
)
:
EventImpl
Parameters
context
:
CalendarContext
def
:
EventDef
Optional
instance
:
EventInstance
Returns
EventImpl
Properties
_
context
_context
:
CalendarContext
_
def
_def
:
EventDef
_
instance
_instance
:
EventInstance
Accessors
all
Day
get
allDay
()
:
boolean
Returns
boolean
allow
get
allow
()
:
AllowFunc
Returns
AllowFunc
class
Name
get
className
()
:
string
Returns
string
color
get
color
()
:
string
Returns
string
constraint
get
constraint
()
:
string
|
EventStore
Returns
string
|
EventStore
contrast
Color
get
contrastColor
()
:
string
Returns
string
display
get
display
()
:
string
Returns
string
duration
Editable
get
durationEditable
()
:
boolean
Returns
boolean
end
get
end
()
:
Date
Returns
Date
end
Str
get
endStr
()
:
string
Returns
string
extended
Props
get
extendedProps
()
:
Dictionary
Returns
Dictionary
group
Id
get
groupId
()
:
string
Returns
string
id
get
id
()
:
string
Returns
string
overlap
get
overlap
()
:
boolean
Returns
boolean
source
get
source
()
:
EventSourceImpl
Returns
EventSourceImpl
start
get
start
()
:
Date
Returns
Date
start
Editable
get
startEditable
()
:
boolean
Returns
boolean
start
Str
get
startStr
()
:
string
Returns
string
title
get
title
()
:
string
Returns
string
url
get
url
()
:
string
Returns
string
Methods
format
Range
formatRange
(
formatInput
:
FormatterInput
)
:
string
Parameters
formatInput
:
FormatterInput
Returns
string
move
Dates
moveDates
(
deltaInput
:
DurationInput
)
:
void
Parameters
deltaInput
:
DurationInput
Returns
void
move
End
moveEnd
(
deltaInput
:
DurationInput
)
:
void
Parameters
deltaInput
:
DurationInput
Returns
void
move
Start
moveStart
(
deltaInput
:
DurationInput
)
:
void
Parameters
deltaInput
:
DurationInput
Returns
void
mutate
mutate
(
mutation
:
EventMutation
)
:
void
Parameters
mutation
:
EventMutation
Returns
void
remove
remove
()
:
void
Returns
void
set
All
Day
setAllDay
(
allDay
:
boolean
,
options
?:
{
maintainDuration
?:
boolean
}
)
:
void
Parameters
allDay
:
boolean
Optional
options
:
{
maintainDuration
?:
boolean
}
Returns
void
set
Dates
setDates
(
startInput
:
DateInput
,
endInput
:
DateInput
,
options
?:
{
allDay
?:
boolean
;
granularity
?:
string
}
,
)
:
void
Parameters
startInput
:
DateInput
endInput
:
DateInput
Optional
options
:
{
allDay
?:
boolean
;
granularity
?:
string
}
Returns
void
set
End
setEnd
(
endInput
:
DateInput
,
options
?:
{
granularity
?:
string
}
)
:
void
Parameters
endInput
:
DateInput
Optional
options
:
{
granularity
?:
string
}
Returns
void
set
Extended
Prop
setExtendedProp
(
name
:
string
,
val
:
any
)
:
void
Parameters
name
:
string
val
:
any
Returns
void
set
Prop
setProp
(
name
:
string
,
val
:
any
)
:
void
Parameters
name
:
string
val
:
any
Returns
void
set
Start
setStart
(
startInput
:
DateInput
,
options
?:
{
granularity
?:
string
;
maintainDuration
?:
boolean
}
,
)
:
void
Parameters
startInput
:
DateInput
Optional
options
:
{
granularity
?:
string
;
maintainDuration
?:
boolean
}
Returns
void
to
JSON
toJSON
()
:
Dictionary
Returns
Dictionary
to
Plain
Object
toPlainObject
(
settings
?:
{
collapseExtendedProps
?:
boolean
}
)
:
Dictionary
Parameters
Optional
settings
:
{
collapseExtendedProps
?:
boolean
}
Returns
Dictionary
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
On This Page
Constructors
constructor
Properties
_
context
_
def
_
instance
Accessors
all
Day
allow
class
Name
color
constraint
contrast
Color
display
duration
Editable
end
end
Str
extended
Props
group
Id
id
overlap
source
start
start
Editable
start
Str
title
url
Methods
format
Range
move
Dates
move
End
move
Start
mutate
remove
set
All
Day
set
Dates
set
End
set
Extended
Prop
set
Prop
set
Start
to
JSON
to
Plain
Object
Trilium Frontend API
Loading...