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.
Key | Type | Description | Default |
---|---|---|---|
selector | string | The CSS selector of the HTML element to bind the order form to. | .btcdirect-widget |
debug | boolean | Setting this to ‘true’ enables more console logging for the widget. Recommended for development. | false |
locale | string | The locale to use. This is the same as used in Locale. | en-GB |
theme | string | The styling theme to use. Can either be light or dark . | light |
Some widgets support additional init call parameters.