【发布时间】:2021-11-17 09:26:17
【问题描述】:
如何在 exJs 或 javascript 中制作可交换组件。
我有两个组件,两者都是可拖动的。
xtype : "panel",
title: 'My Apps',
region: 'east',
width: 290,
items:[{
xtype : 'panel',
cls: 'myCLS',
iconCls : 'app-info-appstore',
title: 'Home',
draggable : true,
html : 'Home.',
listeners: {
'render': function(panel) {
panel.body.on('click', function() {
alert('onclick');
});
}
}
},{
xtype : 'panel',
cls: 'myCLS',
title: 'Profile',
iconCls : "app-info-iconToure",
draggable : true,
html : 'Apps',
}
当我将一个拖到另一个时,它是重叠的。我们如何在 extJS 中交换两个元素的位置。
任何其他库帮助也可以使用。
【问题讨论】:
标签: javascript html extjs extjs6