Search.../

onBadgeDeleted( )

Developer Preview

Triggered when a badge is deleted.

Syntax

function wixBadges_onBadgeDeleted(event: BadgeDeleted): void

onBadgeDeleted Parameters

NAME
TYPE
DESCRIPTION
event
Optional
BadgeDeleted

Returns

This function does not return anything.

Return Type:

void

Was this helpful?

onBadgeDeleted example

Copy Code
1
2 export function wixBadges_onBadgeDeleted(event) {
3 const eventId = event.metadata.id
4 const entityId = event.entity._id;
5 }
6
7