PDA

View Full Version : Creating linkedin like Inbox Menu in Ext JS 4



naveedanjum
26 Nov 2011, 10:34 PM
I found if i could create LinkedIn.com like Inbox[4] menu in Ext JS. Along with Invitation Person Picture, basic details and accept / reject option.


toolbar.add
(
'-',
{
text:'Inbox',
iconCls:'inbox-icon',
menu:
{
items: [
{
xtype:'label',
html:'<img src="images/brComms.jpg" />'
}
]
}

}
);


I had stared writing basic code in Ext JS 4 but dont have idea how to achieve this. An idea will be appreciated.

mitchellsimoens
27 Nov 2011, 6:27 AM
So all you want is to be able to append '[4]' to a button?


button.setText('Inbox [4]');

Should do that, you just have to get the number and inject it.