A.SchedulerEventSupport Class
A base class for SchedulerEventSupport
.
Constructor
A.SchedulerEventSupport
-
config
Parameters:
-
config
ObjectObject literal specifying widget configuration properties.
Methods
_toSchedulerEvents
-
values
Converts given values to SchedulerEvents
.
Parameters:
-
values
Array | ModelList | Model | A.SchedulerEventValues to be used or converted to
SchedulerEvent
instances.
Returns:
The values converted to SchedulerEvents
.
addEvents
-
models
Adds and returns the collection of events for this Scheduler
.
Parameters:
-
models
Array | ModelList | Model | A.SchedulerEvent
Returns:
eachEvent
-
fn
Applies a function
to the collection of Scheduler
events.
Parameters:
-
fn
Function
Returns:
flushEvents
()
Deletes each event in the collection of Scheduler
events.
getEventByClientId
-
clientId
Returns the event by matching it's clientId
.
Parameters:
-
clientId
String
Returns:
getEvents
-
filterFn
-
skipSort
Gets a collection of events.
Parameters:
-
filterFn
Function(optional) Filters
events
and returns a list of events. -
skipSort
Boolean
Returns:
getEventsByDay
-
date
-
includeOverlap
Gets a collection of events within a given day. It will filter
overlapping events by default unless includeOverlap
is true.
Parameters:
-
date
Date -
includeOverlap
Boolean
Returns:
getIntersectEvents
-
date
Returns the list of all events that intersect with a given date. Events that are not visible are not included in this list.
Parameters:
-
date
Date
Returns:
initializer
-
config
Construction logic executed during SchedulerEventSupport
instantiation.
Lifecycle.
Parameters:
-
config
Object
removeEvents
-
models
Removes given SchedulerEvents
from the scheduler.
Parameters:
-
models
Array | ModelList | Model | A.SchedulerEvent
Returns:
Removed SchedulerEvents.
resetEvents
-
models
Completely replaces all SchedulerEvents
in the list with the given
SchedulerEvents
.
Parameters:
-
models
Array | ModelList | Model | A.SchedulerEvent
Returns:
Reset SchedulerEvents.
Properties
ATTRS
Object
static
Static property used to define the default attribute
configuration for the SchedulerEventSupport
.
Events
plotViewEvents
Fired when the current image will be animated in.