Skip to content

Optional Init Call Parameters

The init call parameters can contain several key-value pairs to fine-tune the widget. (as described in Getting Started)

The different options are described below.

KeyTypeDescriptionDefault
selectorstringThe CSS selector of the HTML element to bind the order form to..btcdirect-widget
debugbooleanSetting this to ‘true’ enables more console logging for the widget.
Recommended for development.
false
localestringThe locale to use.
This is the same as used in Locale.
en-GB
themestringThe styling theme to use.
Can either be light or dark.
light

Some widgets support additional init call parameters.

Made with ❤ by BTC Direct