hello, i'm pretty new to sencha and i am trying to add some simple overlay functionalities to a button using sencha designer.
i've created a button into a toolbar and added the tap event.
defined a OnLogoutTap function in the component inspector and added this code (copied from sencha touch kitchensink)
if (!this.popup) {
this.popup = new Ext.Panel ({
floating: true,
modal: true,
centered: true,
width: 300,
height: 200,
styleHtmlContent: true,
scroll: 'vertical',
html: '<p> this is a modal </p>',
dockedItems: [{
dock: 'top',
xtype: 'toolbar',
title: 'overlay title'
}]
});
}
this.popup.show();
but when i click nothing seems to be happening.
any advice pls'
thank you
Marco