Type Function Return value none Revision Release 2024.3703 Keywords calendar, event, edit, editEvent See also calendar.*
calendar.editEvent()
updates existing event with specified properties.
calendar.editEvent( params )
Table. Table containing call parameters - see next section for details.
String. Identifier of calendar event to modify.
String. Title for the event.
Number. Start date for the event in Unix time format.
Number. End date for the event in Unix time format.
String. Calendar identifier to move the calendar event.
Changing calendar will probably change event's identifier.
String. Location for the event.
Boolean. Boolean value, where true
means that the event should last all day and false
otherwise.
String. Recurrency frequency for the event. Valid values are: day
, week
, month
and year
.
Number. Recurrency end date for the event in Unix time format.
Table. Lua array, each entry containing number of minutes before event to trigger an alarm.
local calendar = require( "plugin.calendar" ) local function editEventListener( event ) -- Handle events here end -- retrieve event id from getEvents or addEvent local someEventId = nil -- Change event's title calendar.editEvent( { listener = editEventListener, eventId = someEventId, title = "Modified Test Event" } )