Friedrich
Friedrich

Reputation: 645

How to hide label from Sencha Touch Ext.TabPanel?

I would like to have solely icons on the Ext.TabPanel.

If I set the title to an empty string, there is still a element below each icon. How to make Sencha Touch hide the label?

Upvotes: 1

Views: 803

Answers (1)

Titouan de Bailleul
Titouan de Bailleul

Reputation: 12949

I can't seem to reproduce the problem. Here is my code :

new Ext.TabPanel({
    fullscreen:true,
    tabBar: { 
        dock: 'bottom',
        layout: { pack: 'center' } 
    }, 
    items:[{
        title:'',
        id: 'card1', 
        iconCls: 'rss', 
        layout: 'card' 
     },{
        title:'',
        id: 'card2', 
        iconCls: 'rss', 
        layout: 'card'
    }], 
});

And this is what I get :

enter image description here

So could you add a printscreen of the tabs or a print screen of the firebug view to see what element you are talking about.

Upvotes: 1

Related Questions