A.SchedulerEventSupport Class
A base class for SchedulerEventSupport.
Constructor
A.SchedulerEventSupport
-
config
Parameters:
-
configObjectObject literal specifying widget configuration properties.
Methods
_toSchedulerEvents
-
values
Converts given values to SchedulerEvents.
Parameters:
-
valuesArray | ModelList | Model | A.SchedulerEventValues to be used or converted to
SchedulerEventinstances.
Returns:
The values converted to SchedulerEvents.
addEvents
-
models
Adds and returns the collection of events for this Scheduler.
Parameters:
-
modelsArray | ModelList | Model | A.SchedulerEvent
Returns:
eachEvent
-
fn
Applies a function to the collection of Scheduler events.
Parameters:
-
fnFunction
Returns:
flushEvents
()
Deletes each event in the collection of Scheduler events.
getEventByClientId
-
clientId
Returns the event by matching it's clientId.
Parameters:
-
clientIdString
Returns:
getEvents
-
filterFn -
skipSort
Gets a collection of events.
Parameters:
-
filterFnFunction(optional) Filters
eventsand returns a list of events. -
skipSortBoolean
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:
-
dateDate -
includeOverlapBoolean
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:
-
dateDate
Returns:
initializer
-
config
Construction logic executed during SchedulerEventSupport instantiation.
Lifecycle.
Parameters:
-
configObject
removeEvents
-
models
Removes given SchedulerEvents from the scheduler.
Parameters:
-
modelsArray | ModelList | Model | A.SchedulerEvent
Returns:
Removed SchedulerEvents.
resetEvents
-
models
Completely replaces all SchedulerEvents in the list with the given
SchedulerEvents.
Parameters:
-
modelsArray | 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.