Календарь с использованием extjs - PullRequest
0 голосов
/ 28 марта 2019

app.js

Ext.application({
    name: 'Fiddle',
    requires:[
        'Ext.calendar.panel.Panel',
        'Ext.calendar.EventBase',
        'Ext.calendar.Event',
        'Ext.calendar.AbstractList',
        'Ext.calendar.List'
    ],
    launch: function () {

          Ext.create('Ext.calendar.panel.Panel', {
            width: 800,
            height: 500,
            views: {
                day: {
                    startTime: 6,
                    endTime: 22,
                    scrollable: 'y',
                },
                week: {
                    scrollable: 'y'
                },
                workweek: {

                    xtype: 'calendar-week',
                    scrollable: 'y',
                    controlStoreRange: false,
                    titleTpl: '{start:date("j M")} - {end:date("j M")}',
                    label: 'Work Week',
                    weight: 15,
                    dayHeaderFormat: 'D d',
                    firstDayOfWeek: 1,
                    visibleDays: 5
                }
            },
            timezoneOffset: 0,
            store: {
                autoLoad: true,
                eventStoreDefaults: {
                    prefetchMode: 'week',
                    type: 'calendar-events',
                    proxy: {
                        type: 'ajax',
                        url: 'events.json',
                        reader: {
                            type: 'json',
                            rootProperty: 'Data'
                        }
                    }
                },
                proxy1: {
                    type: 'ajax',
                    url: 'calendars.json',
                    reader: {
                        type: 'json',
                        rootProerty: 'Data'
                    }
                }
            },
            renderTo: Ext.getBody()
        }); 

}
});

Я включил пакет календаря, но его функция показа без интервала не определена.

Добро пожаловать на сайт PullRequest, где вы можете задавать вопросы и получать ответы от других членов сообщества.
...