3 Roo.example = Roo.example || {};
5 Roo.example.calendar = new Roo.XComponent({
6 part : ["layout","viewpanel"],
7 order : '001-viewpanel',
10 name : "unnamed module",
17 el : new Roo.bootstrap.Body()
19 this.parent.el.layout = false;
20 this.parent.el.render(document.body);
24 var baseURL = '/web.eventmanager/admin.php';
33 style : 'margin-top:50px',
38 style : 'margin-top:50px',
43 cls : 'col-md-6 col-sm-12',
48 evententer : function(e,el,data) {
49 _this.popover.show(el)
51 eventleave : function(e,el,data) {
52 Roo.log('event leave');
55 monthchange : function(e,data) {
63 beforeload : function (_self, o){
64 Roo.log('beforeload');
66 o.params = o.params || {};
67 var d = new Date().format('Y-m');
69 d = typeof(_this.cal.activeDate) == 'string' ? _this.cal.activeDate : _this.cal.activeDate.format("Y-m");
71 o.params._activeDate = d
75 sortInfo : { direction : 'ASC', field: 'start_dt' },
80 url : baseURL + '/Roo/Cal_event.php'
87 totalProperty : 'total',
88 fields : [{"name":"id","type":"int"},{"name":"title","type":"string"}]
99 title : "test popover",
100 html : "test content",
103 render : function(args) {
104 _this.popover = this;