now its working whit the peace of code from you for the back button text. but i don't understand why the tabbar now is disapeard.
app.js
Code:
Ext.application({
name: 'Sencha',
controllers: ['Main'],
views: ['Main'],
stores: ['MoreCards'],
launch: function() {
Ext.Viewport.add({
xtype : 'navigationview',
defaultBackButtonText : 'Somewhere',
navigationBar : {
defaultBackButtonText : 'Somewhere'
},
items : [
{
title : 'Home',
html : 'Home'
},
{
title : 'New',
html : 'New'
}
]
});
/*Ext.Viewport.add({
xclass: 'Sencha.view.Main'
});*/
}
});
main.js
Code:
Ext.define('Sencha.view.Main', {
extend: 'Ext.TabPanel',
requires: [
'Sencha.view.Settings',
'Sencha.view.More',
'Sencha.view.Search',
'Sencha.view.Chart'
],
config: {
tabBar: {
docked: 'bottom',
layout: {
pack: 'center'
}
},
items: [
{ xtype: 'settingscard' },
{ xtype: 'morecard' },
{ xtype: 'chartcard' },
{ xtype: 'searchcard' }
]
}
});
am i doing the same misstake like the last time? i mix sencha touch version 1 and 2? or are there different ways to say "you are the titlebar-element. and you are the tabbar-element."?
maybe i'm stupid or don't know where to read tutorials or hints in the forum? ;-)