Event Handing
The SDK emits a SPACE_CLICKED event when a user interacts with a space (e.g., desk, office, or meeting room). The event includes the space_id for the selected space:
interface SpaceClickedEvent {
event: 'SPACE_CLICKED';
space_id: string;
}
Example event listener:
sdk.on('SPACE_CLICKED', ({ space_id }) => {
console.log('Space clicked:', space_id);
// Example: Fetch additional details or trigger a booking action
});
Events
Event
Payload
SPACE_CLICKED
{
"space_id": "<unique space ID>"
}
Last updated
Was this helpful?