Support "styles" param in touch control

This commit is contained in:
redphx 2024-05-04 15:33:19 +07:00
parent d91fdb798e
commit b1df189c7d

View File

@ -178,9 +178,7 @@ export class TouchController {
layout: { layout: {
id: 'System.Standard', id: 'System.Standard',
displayName: 'System', displayName: 'System',
layoutFile: { layoutFile: layout,
content: layout.content,
},
} }
}); });
}, delay); }, delay);
@ -188,7 +186,7 @@ export class TouchController {
static setup() { static setup() {
// Function for testing touch control // Function for testing touch control
window.BX_EXPOSED.test_touch_control = (content: any) => { window.BX_EXPOSED.test_touch_control = (layout: any) => {
const { touch_layout_manager } = window.BX_EXPOSED; const { touch_layout_manager } = window.BX_EXPOSED;
touch_layout_manager && touch_layout_manager.changeLayoutForScope({ touch_layout_manager && touch_layout_manager.changeLayoutForScope({
@ -198,9 +196,7 @@ export class TouchController {
layout: { layout: {
id: 'System.Standard', id: 'System.Standard',
displayName: 'Custom', displayName: 'Custom',
layoutFile: { layoutFile: layout,
content: content,
},
}, },
}); });
}; };