Format: JmApi.bridgeWidget(elementId, options);

In this case iframe element must be created in HTML. You need to pass elementId to the function and it will attach to the correct element.

Format: JmApi.createBridgeWidget(element, options);

This will create the iframe element with the bridge UI inside it.

Element can be ID of already existing element or an instance of an HTMLElement. It will be appended inside that element. If element does not exist it will be created with this given ID. If element is null, the element will be created with random ID.

Returns: ID of the iframe element.

Note that for the bridge widget you need to import


  • network: default network that will be chosen initially

  • tokens: array of tokens to be visible on the bridge widget UI. Empty array shows all tokens.

  • defaultToken: token that will be selected by default

  • googleFontFamily: allows to set custom font from Google Fonts

  • backgroundColor: background color of the widget. Can also be set to 'transparent'

  • backgroundImage: background image of the widget

  • textColor: main text color

  • buttonStyle: large button style

  • maxButtonStyle: style of the "max" button which is shown after user has connected to the widget

  • inputContainerStyle: style of the input containers and dropdown elements

  • headingStyle: style of the main heading

  • lightBranding: JustMoney logo white when set to true, dark if set to false

Last updated