简体   繁体   中英

how to change direction of toolTip extjs 4.2

I want to change the direction of my tab's tooltip.

I want to make it align to the top.

My code is like this :

var toolTip = 'test';

var panelExpertCharts = Ext.create('ContainerListChartExpert', {                        
                        chartList: chartList,
                        layout: standardLayout,
                        idIndicator: idIndicator,
                        idOrganisation: organisationObj.id,
                        title: chartList[0].titleExpert,
                        closable: true,                     
                        tabConfig: {                            
                             tooltip: toolTip
                        }
                    });

Thanks for reply.

Hamza.

Hi you can change a tooltip alignment in the following way

 listeners: {
        render: function(c) {
              new Ext.ToolTip({
                 target: 'trackCallout',
                 anchor: 'right',
                 html: 'Test Tooltip'
              });
            }
        } 

You can check a very good example here from sencha .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM