Web SDK Reference | Get available products
The getAvailableProducts()
method returns an array with available products that can be loaded in the configurator.
JS
getAvailableProducts()
Returns
Type | Description |
---|---|
| An array of objects with the following structure:
JS
|
Example
JavaScript
JS
let availableProducts = window.twikit.getAvailableProducts();
let availableProductKeys = availableProducts.map(product => product.id);