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: {
id: 'System.Standard',
displayName: 'System',
layoutFile: {
content: layout.content,
},
layoutFile: layout,
}
});
}, delay);
@ -188,7 +186,7 @@ export class TouchController {
static setup() {
// 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;
touch_layout_manager && touch_layout_manager.changeLayoutForScope({
@ -198,9 +196,7 @@ export class TouchController {
layout: {
id: 'System.Standard',
displayName: 'Custom',
layoutFile: {
content: content,
},
layoutFile: layout,
},
});
};