I am new in Sencha Touch framework. I have a situation to place a map into a tabpanel. I make a view page which extends Ext.tab.Panel. But I can not add a map inside a tab of that tabpanel. So please help me to add a map into the tabpanel. One of the tab item is as follows..
{
title: 'Candidate',
iconCls: 'user',
styleHtmlContent: true,
items: [{
docked: 'top',
xtype: 'titlebar',
title: 'Candidates',
items: [{
xtype: 'button',
iconCls: 'list',
align: 'left',
handler: function (){
Ext.Viewport.toggleMenu('left');
}
},{
xtype: 'button',
iconCls: 'search',
align: 'right'
}]
},
{
xtype: 'fieldset',
ui: 'topbutton',
layout: {
type: 'hbox',
align: 'center',
pack: 'center'
},
items: [{
xtype: 'button',
text: 'List',
width:100,
handler: function(){
var candidatelistView = Ext.Viewport.add(Ext.create('Proximity.view.CandidatelistView'));
Ext.Viewport.setActiveItem(candidatelistView);
}
},{
xtype: 'button',
text: 'Map',
width:100
}
]
},{
xtype: 'container',
title: 'One',
items: [
{
xtype: 'map'
}
]
}]
}
Thank you,
requires: ['Ext.Map']in your app config? - koni