Skip to main content

Placement

Methods#

on#

on<T>(event: string): Subscriber‹T›

Subscribes to events coming from a placement.

Type parameters:

T

Parameters:

NameTypeDescription
eventstringName of the event to subscribe to

Returns: Subscriber‹T›


onClose#

onClose(): Promise‹void›

Promise resolved when placement is removed from the page.

Returns: Promise‹void›


remove#

remove(): Promise‹void›

Removes the placement from the page.

Returns: Promise‹void›

Was this article helpful?