Search...
onEventEnded( )
A backend event that fires when a Wix event ends.
Description
The onEventEnded()
event handler runs when a Wix event ends.
The received EndedEvent
object contains information about the ended event.
Note: Backend events are not fired when previewing your site.
Syntax
function onEventEnded(event: EndedEvent): void
onEventEnded Parameters
NAME
TYPE
DESCRIPTION
event
EndedEvent
Information about the event that has ended.
Returns
This function does not return anything.
Return Type:
void
Was this helpful?
A backend event that occurs when a Wix event ends
Copy Code
1// Place this code in the events.js file2// of your site's Backend section.3// Add the file if it doesn't exist.45export function wixEvents_onEventEnded(event) {6 let eventId = event.eventId;7 let title = event.title;8}910/* Full event object:11 * {12 * "timestamp": "2020-04-26T13:57:50.699Z",13 * "eventId": "46dc2337-d725-4f7e-a0ae-a94a9a1f0c0b",14 * }15 */