Search.../

onBadgeUpdated( )

Developer Preview

Triggered when a badge is updated.

Syntax

function wixBadges_onBadgeUpdated(event: BadgeUpdated): void

onBadgeUpdated Parameters

NAME
TYPE
DESCRIPTION
event
Optional
BadgeUpdated

Returns

This function does not return anything.

Return Type:

void

Was this helpful?

onBadgeUpdated example

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