PDA

View Full Version : Toolbar button with two or more badges... how to?



LucasItaly83
15 May 2012, 12:59 AM
Hi all,
i'd like to have a button with two badges in the toolbar for my application.
Any idea of how to make this?
I imagine i have to extend the x-button class or something similar, but i'm not so expert in extending Ext components.
Thanks to all who'll try to help me!

Luca

cmujica2
15 May 2012, 6:49 AM
I'm not sure that you ultimately want to change the image of a button from the toolbar?could you attach the picture? . if you want each logo on a button that I have different events that can not be

Sencha code

S.views.mainBottomBar = new Ext.Toolbar({
dock: 'bottom',
items: [
{
xtype: 'spacer'
},
{
cls: 'btnAction',
handler: function()
{
}
}
]
});


CSS

.btnAction {
background: url('images/img.png') !important;
width: 60px;
}


I hope I've helped