appendBcmButton

appendBcmButton(options)

Appends a BCM widget launch button to a specified HTML element.

Parameters

  • options (Object): Button configuration.
    • text (String): Button label.
    • selector (String, optional): CSS selector of the target element.
    • data (Object, optional): Data to be passed when the button is clicked.
    • onClose (Function, optional): Callback function executed when the widget is closed.

Example

Tento.appendBcmButton({
  text: 'Apply for BCM',
  selector: '#bcm-container',
  onClose: function(isSuccess) {
    console.log('BCM process completed:', isSuccess);
  }
});