ExtJS 4.2.1 - 选项卡面板中的网格 - 工具提示停止工作

ExtJS 4.2.1 - Grid in Tab Panel - Tooltips stop working

本文关键字:网格 停止工作 工具提示 选项 ExtJS      更新时间:2023-09-26

我有一个带有工具提示的Ext.grid.Panel,可以正常工作。

如果我把Grid放在Ext.tab.Panel里,并移动

renderTo : 'inner',

到选项卡面板上,工具提示不再起作用

https://jsfiddle.net/95g1pdck/2/

我需要进行一些调整才能使其正常工作吗?

你必须先渲染网格。

var grid = Ext.create('Ext.grid.Panel', {
            title: 'Array Grid',
        height: 200,
            store: store,
            columns: [
                {text: 'Company', flex: 1, dataIndex: 'company'},
                {text: 'Price', width: 75, dataIndex: 'price'},
                {text: 'Change', width: 75, dataIndex: 'change'}
            ],
        });
        var tabs = Ext.create('Ext.tab.Panel', {
            renderTo : 'inner',
            items : [ grid ]
        });

刚刚更新了你的小提琴:https://jsfiddle.net/95g1pdck/4/