Roo/bootstrap/Calendar.js
authorAlan Knowles <alan@roojs.com>
Tue, 18 Feb 2014 05:30:49 +0000 (13:30 +0800)
committerAlan Knowles <alan@roojs.com>
Tue, 18 Feb 2014 05:30:49 +0000 (13:30 +0800)
Roo/bootstrap/Calendar.js

index 7bf9fc1..3520cf2 100644 (file)
 
 Roo.bootstrap.Calendar = function(config){
     Roo.bootstrap.Calendar.superclass.constructor.call(this, config);
+     this.addEvents({
+        /**
+            * @event select
+            * Fires when a date is selected
+            * @param {DatePicker} this
+            * @param {Date} date The selected date
+            */
+        'select': true,
+        /**
+            * @event monthchange
+            * Fires when the displayed month changes 
+            * @param {DatePicker} this
+            * @param {Date} date The selected month
+            */
+        'monthchange': true
+    });
+
 };
 
 Roo.extend(Roo.bootstrap.Calendar, Roo.bootstrap.Component,  {