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) {
54 monthchange : function(e,data) {
62 beforeload : function (_self, o){
63 o.params = o.params || {};
64 var d = new Date().format('Y-m-d');
66 d = typeof(_this.cal.activeDate) == 'string' ? _this.cal.activeDate : _this.cal.activeDate.format("Y-m-d");
68 o.params._activeDate = d
72 sortInfo : { direction : 'ASC', field: 'start_dt' },
77 url : baseURL + '/Roo/Cal_event.php'
84 totalProperty : 'total',
85 fields : [{"name":"id","type":"int"},{"name":"title","type":"string"}]
96 title : "test popover",
97 html : "test content",
100 render : function(args) {
101 _this.popover = this;