UNPKG

extjs-gpl

Version:

GPL licensed version of Sencha Ext JS

63 lines (56 loc) 1.56 kB
Ext.define('KitchenSink.view.calendar.Validation', { extend: 'Ext.panel.Panel', xtype: 'calendar-validation', requires: [ 'KitchenSink.view.calendar.ValidationController', 'KitchenSink.data.calendar.Validation', 'Ext.calendar.panel.Days' ], //<example> otherContent: [{ type: 'Controller', path: 'classic/samples/view/calendar/ValidationController.js' }], //</example> controller: 'calendar-validation', width: 1000, height: 700, viewModel: { data: { value: new Date() }, stores: { calStore: { type: 'calendar-calendars', autoLoad: true, eventStoreDefaults: { prefetchMode: 'day' }, proxy: { type: 'ajax', url: '/KitchenSink/CalendarValidation' } } } }, layout: 'fit', items: [{ xtype: 'calendar-days', startTime: 8, endTime: 18, visibleDays: 2, timezoneOffset: 0, gestureNavigation: false, bind: { store: '{calStore}', value: '{value}' }, listeners: { beforeeventdragstart: 'onBeforeDragStart', beforeeventresizestart: 'onBeforeResizeStart', validateeventdrop: 'confirmAction', validateeventresize: 'confirmAction', validateeventerase: 'confirmAction' } }] })