设置属性时,我试图拖放到TabPanel
选项卡(实际选项卡,而不是容器)上。
我有一个TabPanel
并且正在整个 TabPanel 条上设置一个拖放区,但不太确定getTargetFromEvent
示例
// My TabPanel Def
myTabPanel = new Ext.TabPanel({
activeTab: 0,
items: [{
title:'Non-Drop Tab'
},{
title:'DROP ON THIS TAB',
enableDrop: True
}]
});
myTabPanel.dropZone = new Ext.dd.DropZone(myTabPanel.strip,{
getTargetFromEvent: function(e) {
// ####
// Need to get the tab being dropped onto here
// ####
return the_tab;
},
...rest of config...
})
我希望这是有道理的,谢谢!