Hi,
Because of problems with my navigation's view, i have hidden the topbar.
Then i have decided to create a toolbar and a list inside my vbox.
Before i have tested the list with success but when i have added the toolbar, only this one is shown.
On the console, i have the following log from sencha touch #2 :
[DEPRECATE][Ext.Base#callParent] 'dock' config for docked items is deprecated, please use 'docked' instead
Any idea of the problem ?
Here is my source code :
Code:
var liveview = Ext.create("Ext.NavigationView",
{
fullscreen: true,
id: 'liveid',
items:
[
// ----- 0 : Live listing -----
{
title: 'LstLive',
layout: 'vbox',
padding: 10,
items:
[
// ----- Top bar -----
{
xtype: 'toolbar',
docked: 'top',
ui: 'light',
items:
[
{
dock: 'top',
xtype: 'toolbar',
title: 'LIVE'
}
]
},
// ----- Live profile's name -----
{
title: _strings_live_liveprofilelisting[dmngConfig.deviceLanguageID],
xtype: 'list',
itemTpl: '{name} (delay:{delay})',
store: LiveProfileStore,
listeners:
{
itemtap: function(record, index)
{
//console.log("record="+record+" - index="+index);
//console.log(record);
console.log("[LIVE] id=" + dmngConfig.liveProfile[index].id);
console.log("[LIVE] name=" + dmngConfig.liveProfile[index].name);
console.log("[LIVE] delay=" + dmngConfig.liveProfile[index].delay);
localStorage['liveprofileid'] = dmngConfig.liveProfile[index].id;
localStorage['liveprofilename'] = dmngConfig.liveProfile[index].name;
localStorage['liveprofiledelay'] = dmngConfig.liveProfile[index].delay;
liveview.push(2);
}
}
}
]
}
]
};
liveview.getNavigationBar().hide();