我希望Roomle Configurator始终以EDIT模式打开,而不是仅在移动设备上打开VIEW,如何强制执行此操作?我已经阅读了文档,但似乎无法使其工作,这是我当前的代码。。。
<script type="module">
import RoomleConfiguratorApi from 'https://cdn.shopify.com/s/files/1/0441/4531/1894/files/roomle-configurator-api.es.min.js';
(async ()=> {
const options = {
translations: {
en: {
params: {
'request-product': 'Add to Cart'
},
addons:{
'hint':'All builds should have at least one rear panel to aid stability. All
sizes in centimetres'
},
"global": {
"gdpr-info": "I agree to receiving emails about my saved design, as well as the occasional piece of
carefully curated content from Shelved. The data controller is Roomle GmbH. Your data will be
processed in order to allow you to finish and save your design. The legal basis for the processing is
your consent (art. 6(1)(a)(f) of the GDPR).",
}
}
},
id: 'racksystems_test:sub_root',
locale: 'en',
overrideCountry: 'en',
overrideTenant: '114',
usePriceService: false,
emails: true,
deeplink: 'https://www.shelved.co.uk/pages/product-configurator?
roomleId=#CONFIGURATIONID#&configuratorId=racksystems',
};
const configurator = await RoomleConfiguratorApi.create(
'rackSystems',
document.getElementById('configurator-container'),
options,
);
使用RoomleConfigurator.create
获得配置器实例后,可以使用configurator.ui.startConfiguring()
立即打开它。
你可以在这里找到一个例子:https://docs.roomle.com/web/embedding/#typescript
您可以在这里找到文档:https://docs.roomle.com/web/embedding/api/classes/exposed_api.exposedapi.html#startconfiguring