I did a lot of reading but i can't figure this out. This app uses Sencha Touch 2.0
My 'app' has a segmented button
xtype: 'segmentedbutton'
With this item
{
text: 'Blog',
scope: this,
handler: this.makeYqlRequest
}
This is what it does
blog: {
query: "select * from rss where url='http://feeds.feedburner.com/extblog' limit 5",
tpl: Ext.create('Ext.XTemplate', [
'<tpl if="item">',
'<tpl for="item">',
'<div class="blog-post">',
'<h3><a href="{link}" target="_blank">{title}</a></h3>',
'<p>{description}</p>',
'</div>',
'</tpl>',
'</tpl>'
])
}
This works wel but now i want to use the Ext.TabPanel
And i have this item
{
title: 'Blog',
iconCls: 'home',
html: 'Blog Screen'
}
How can i get the handler from the segmented button to work with the Ext.TabPanel? I played a little with a listener but i can't get it to work.
Can someone explain this a little more to me?
Thank you!