PDA

View Full Version : calendar does now show



phamtranquocviet
12 Sep 2013, 7:11 PM
Hi,

I define a class to wrap around my calendar like the followed, but it keeps throwing this error. What am I doing wrong?

TypeError: item.onAdded is not a function
item.onAdded(me, pos);



Ext.define('Iip.view.giips.schedule.CalendarTab', {
alias:'widget.course-provisioning-tab-calendar-tab',
id: 'course-provisioning-tab-calendar-tab',

requires: [
'Ext.tab.Panel',
'Extensible.Extensible',
'Extensible.calendar.data.MemoryEventStore',
'Extensible.calendar.CalendarPanel',
'Extensible.example.calendar.data.Events'
],

constructor: function() {
Ext.create('Extensible.calendar.CalendarPanel', {
title: 'Calendar',
width: 700,
height: 500,
eventStore: Ext.create('Extensible.calendar.data.MemoryEventStore', {
data: Ext.create('Extensible.example.calendar.data.Events')
})
});
}
});

ettavolt
12 Sep 2013, 9:38 PM
Why not to just extend Extensible.calendar.CalendarPanel?