vendredi 23 mai 2014

List in float panel with navigation view

Hi,

I try add list to float panel with navigation view, but it not showing. When I adding list to panel (without navigation) it's showing. How I can fix it? Thanks.


Example code - http://ift.tt/TDlJiJ


or



Code:



Ext.define('T2T.view.ChatList', { extend: 'Ext.Panel',
alias: 'widget.chatlistmodalpanel',


config: {
left: 0,
right: 5,
bottom: 0,
modal: true,
hideOnMaskTap: true,
hidden: true,
layout: 'fit',
items: [
{
xtype: 'navigationview',
id: 'chatlist_navigation_bar',
navigationBar : {
items : []
},
//scrollable: {
// direction: 'vertical',
// directionLock: true
//},
items : [
{
title: 'Messages',
items: [
{
xtype: 'list',
id: 'chat_users_list',
emptyText:'No Chats.',
itemTpl: '{name}',
data: [
{name: 'Cowper'},
{name: 'Everett'},
{name: 'University'},
{name: 'Forest'}
]
}
]
}
]
}
]
}
});



I can use toolbar but I wants push to navigation view another view after select item in list.


Aucun commentaire:

Enregistrer un commentaire