Question

I'm trying to set up an Extensible Calendar Pro in my ExtJs 4.1 application, but I still get a name is undefined error.

EDIT:

I solved the original problem, but directly went in another.

Updated code:

Ext.define('ZeuS.view.panels.ZeusMainPanel',{
    extend: 'Ext.panel.Panel',
    id : 'zeusMainPanel',
    alias : 'widget.zeus',

requires : [
    'Extensible.Extensible',
    'Extensible.calendar.CalendarPanel',
    'Extensible.calendar.data.MemoryEventStore',
    'Extensible.calendar.data.EventModel',
    'Extensible.calendar.view.*'
],

    autoShow : true,
    layout : 'border',
    border : false,

    initComponent : function(){
        this.items = [{
                /*
                 * Some other Ext Elements
                 */
            }, {
                region : 'east',
                xtype : 'extensible.calendarpanel',
                name : 'zeus-calendar',
                width : 500,
                eventStore: Ext.create('Extensible.calendar.data.EventStore', {
                    data: Ext.create('Extensible.calendar.data.EventModel',{
                        StartDate: '2101-01-12 12:00:00',
                        EndDate: '2101-01-12 13:30:00',
                        Title: 'My cool event',
                        Notes: 'Some notes'
                    })
                })
            }
        ];

        this.callParent(arguments);
    }

});

Now it loads all classes correctly when the Extensible singleton is included, but nothing works. I just have a white screen and no functions in the controller or anywhere else are called. When I remove it from the requires list it comes up with this error: Extensible.log is not a function

Do I use the plugin at all right?

Any advice?

Was it helpful?

Solution

Extensible.log is defined on the Extensible singleton, so it should always be available if your dependencies and includes are set up correctly. You really should post in the Extensible forums with additonal details (Ext version, Extensible version, script include markup) as this is basically a product support question.

EDIT: By the way, there is no such thing as Extensible.Extensible, which might be part of your problem. Also you cannot use wildcard requires statements for non-Sencha classes. You might try getting a basic example working first before trying to create a complex layout with it.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top