Moja lista dotykowa Sencha nie jest wyświetlana. Jedyne, co zrobiłem, to zmienić kontener główny na widok nawigacyjny, aby można było do niego przenosić inne widoki, ale wtedy nawigacja nie lubi "dopasowania" jako katalogu głównego. Więc przeniosłem to do innego pojemnika z napisem "dopasowanie". Jednak teraz lista się nie wyświetla ?!Lista dotykowa Sencha nie jest wyświetlana (ponownie!)
Patrz poniżej:
Ext.define('MyApp.view.inbox.MyInbox', {
extend: 'Ext.navigation.View',
alias: 'widget.myinboxview',
requires: [
'Ext.navigation.View'
],
config: {
title: 'My Inbox',
xtype: 'card',
items: [
{
xtype: 'container',
type: 'vbox',
items: [
{
xtype: 'container',
flex: 1,
items: [
{
xtype: 'container',
margin: 10,
layout: {
type: 'hbox'
},
items: [
{
xtype: 'label',
html: 'You have sent'
},
{
xtype: 'label',
html: '0 enquiry',
right: 0
}
]
},
{
xtype: 'container',
margin: 10,
cls: 'linesAboveBelow',
layout: {
type: 'hbox'
},
items: [
{
xtype: 'label',
html: 'You have'
},
{
xtype: 'label',
html: '1 unread response',
right: 0
}
]
}
]
},
{
xtype: 'container',
flex: 5,
layout: {
type: 'fit'
},
items: [
{
xtype: 'list',
store: 'theInboxEnquiryStore',
itemTpl: [
'<div>Date: { CreationDate }</div>'
]
}
]
}
]
}
]
}
});
Cześć dzięki za to, zadziałało! Przepraszam za bycie głupim, ale co było nie tak z moim poglądem? Użyłem Sencha Architect, aby stworzyć układ, więc jestem zaintrygowany, aby wiedzieć, co to jest problem. – jaffa
Zaktualizowałem moją odpowiedź. Btw wybierz to jako poprawną odpowiedź. – blessenm