New to Kendo UI for Angular? Start a free 30-day trial
Represents a base implementation of the edit service that persists data to CRUD services such as OData.
To use custom models, pass a field map as a constructor parameter in the BaseEditService
implementation. Subclasses must implement the read
operation (that is not called directly by the base class) and the save
method to persist created, updated, and deleted entities.
The events
observable publishes the current data when you subscribe, for example, by using an async pipe (more information).
Implementations that utilize dedicated services, such as Google Calendar and Microsoft Exchange, typically implement the
EditService
of the Scheduler directly.
See example in this article.
``
|
---|
Creates a new event.
|
Parameters | | |
---|
event
|
TEvent
|
The event to create.
|
|
|
---|
Creates an exception for an existing recurring event. The recurrenceId field of the exception or the custom field set by the model map points to the master event.
|
Parameters | | |
---|
event
|
TEvent
|
The occurrence to remove from the series.
|
value
|
TEvent
|
An object with the updated field values, for example, a form group value.
|
|
|
---|
Returns the master recurring event for a specified recurring event.
|
Parameters | | |
---|
event
|
TEvent
|
An event from the recurrence series.
|
|
Returns | |
---|
any
|
the master recurring event for the series.
|
|
|
---|
Checks if the event is a recurrence exception.
|
Parameters | | |
---|
event
|
any
|
The event that will be checked.
|
|
Returns | |
---|
boolean
|
true if the event is a unique event which belongs to a recurrence series. Otherwise, returns false .
|
|
|
---|
Checks if the event is part of the recurrence series.
|
Parameters | | |
---|
event
|
any
|
The event that will be checked.
|
|
Returns | |
---|
boolean
|
true if the event is an occurrence, an exception, or a master event. Otherwise, returns false .
|
|
|
---|
Removes a non-recurring event.
|
Parameters | | |
---|
event
|
TEvent
|
The event to remove.
|
|
|
---|
Removes a single occurrence from a recurring series. The recurrenceId field of the occurrence or the custom field set by a model map points to the master event.
|
Parameters | | |
---|
event
|
TEvent
|
The occurrence to remove.
|
|
|
---|
Removes the recurrence series and any exceptions.
|
Parameters | | |
---|
event
|
TEvent
|
Any event from the recurrence series.
|
|
|
---|
Updates the event by copying changed fields from the value object.
|
Parameters | | |
---|
event
|
TEvent
|
The event to update.
|
value
|
any
|
An object with the new field values, for example, a form group value.
|
|