Skip to content

Remote configuration

Most of data- attributes of any component can be overridden via the remote config, which can be provided on the Fibbl Client Portal https://app.fibbl.com, on the "Dist Settings" page.

Currently, it can be used only for the fibbl-model-viewer component, but can be enabled for any other component in the future.

This feature allows our clients to update the UI of the elements without editing code of their websites. So it may make sense to provide the UI config for the model viewer on the Client Portal at once without adding corresponding data- attributes.

If you are a developer, please, keep this feature in mind and prefer it over the data- attributes for UI configuration. Essential attributes like data-product-id and data-type for fibbl-qr-code must be provided explicitly, of course. The remote config should be used for attributes like data-ui-config and data-initial-rotation of the fibbl-model-viewer.

Also, if there is a remote config, it will replace the data- attributes during the component initialization (you will see the new attributes in the markup), which may be confusing. However, if it happens a component sets an additional data- attribute with a comment saying that the remote config has been applied.

The remote config doesn't work for demo models (e.g. @demo-shoe). It works only for the company models fetched with a proper product id.