So, basically, I have a listPanel as the only thing in the viewport... For some reason, the list isn't showing up. I know this should be a simple error, but please help me find it cause I need it fixed ASAP. Thanks! BTW: The main viewport shows up and all (I know cause I have a background color on it), so I don't see the point of putting the HTML file up.
Code:
MyApp=new Ext.Application({ name: 'MyApp',
launch: function() {
MyApp.sportsList = new Ext.Panel({
id: 'sportsListPanel',
cls: 'card',
width: 400,
height: 500,
itemTpl: '<div class= "sportName">{sportName}</div>',
grouped: true,
store: MyApp.sportsStore,
});
Ext.regModel('sportModel', {
fields: [{name: "sportName", type: "string"}]
});
MyApp.sportsStore = new Ext.data.Store({
model: 'sportModel',
data: [
{ sportName: "Basketball (Boys)"},
{ sportName: "Golf (Boys)"},
{ sportName: "Soccer (Boys)"},
{ sportName: "Tennis (Boys)"},
{ sportName: "Cheer"},
{ sportName: "Cross Country"},
{ sportName: "Football)"},
{ sportName: "Basketball (Girls)"},
{ sportName: "Golf (Girls)"},
{ sportName: "Soccer (Girls)"},
{ sportName: "Tennis (Girls)"},
{ sportName: "Softball"},
{ sportName: "Volleyball"},
{ sportName: "Wrestling"},
{ sportName: "Track"},
]
});
MyApp.Viewport= new Ext.Panel({
fullscreen: true,
layout: 'fit',
style: "background-color: #fee",
items: [MyApp.sportsList]
});
}
});