mount()

element.mount(htmlElementId)

Attaches the EBT Element to the HTML container indicated by the provided ID.

Parameters

TypeDescription
htmlElementId

required

stringThe ID of the container element where the EBT Element is to be mounted. The container should be a <div> with a unique ID attribute.

Example

Mount a ForagePinElement to the DOM

In this example, the ForagePinElement is used for a balance check:

balanceElement.mount('balance-check-container')