小编jee*_*iya的帖子

Extjs4 tabpanel,禁用所有子项而不循环它们

是否有任何方法可以禁用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'保持状态为启用.

tabs extjs tabpanel extjs4

3
推荐指数
1
解决办法
4694
查看次数

Extjs DataView显示工具提示

我正在使用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为我的工具提示设置值.

有什么办法来设置showDelaydataview道具栏?

dataview extjs tooltip extjs4

2
推荐指数
1
解决办法
7103
查看次数

标签 统计

extjs ×2

extjs4 ×2

dataview ×1

tabpanel ×1

tabs ×1

tooltip ×1