Meine Sencha Touch-Liste wird nicht angezeigt. Alles was ich getan habe, war den Root-Container in eine Navigationsansicht zu ändern, so dass andere Ansichten auf ihn gedrängt werden können, aber dann mag es die Navigation nicht, als Root zu "passen". Also habe ich das in einen anderen Container mit dem Typ 'fit' verschoben. Aber jetzt wird die Liste nicht angezeigt ?!Sencha Touch-Liste wird nicht angezeigt (wieder!)
Siehe unten:
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>'
]
}
]
}
]
}
]
}
});
Hallo danke dafür, es hat funktioniert! Sorry für dumm zu sein, aber was war ursprünglich falsch mit meiner Sicht? Ich habe Sencha Architect verwendet, um das Layout zu erstellen, daher bin ich gespannt, was das Problem ist. – jaffa
Ich habe meine Antwort aktualisiert. Btw wählen Sie dies als die richtige Antwort. – blessenm