是否有任何方法可以禁用Extjs4选项卡面板上的所有子项,而无需循环它们.
我的代码:
var myPanel = new Ext.TabPanel({
region: 'east',
title: 'my panel title',
width: 200,
id: 'my-panel',
split: true,
collapsible: true,
collapsed: true,
floatable: true,
xtype: 'tabpanel',
items: [
Ext.create('Ext.panel.Panel', {
id: 'my-detail-panel',
title: 'My Info',
autoScroll: true,
file: false,
type: 'vbox',
align: 'stretch',
tpl: myDetailsTpl
}),
Ext.create('Ext.panel.Panel', {
id: 'my-more-detail-panel',
title: 'My more info',
autoScroll: true,
file: false,
type: 'vbox',
align: 'stretch',
tpl: myMoreDetailsTpl
})
]
});
Run Code Online (Sandbox Code Playgroud)
我需要禁用myPanel的所有子项,但仍需要'myPanel'保持状态为启用.
我正在使用ExtJS DataView作为我的图片库.这是我的项目工具提示的方式.它在tpl.
new Ext.XTemplate(
'<tpl for=".">',
'<div class="thumb-wrap" data-qtip="{shortname}">',
'<img class="file-image" src="{thumb}" />',
'</div>'
'</tpl>'
);
Run Code Online (Sandbox Code Playgroud)
它工作正常,但我想showDelay为我的工具提示设置值.
有什么办法来设置showDelay为dataview道具栏?