Roo/bootstrap/Radio.js
authoredward <edward@roojs.com>
Fri, 17 Nov 2017 10:00:18 +0000 (18:00 +0800)
committeredward <edward@roojs.com>
Fri, 17 Nov 2017 10:00:18 +0000 (18:00 +0800)
Roo/bootstrap/Radio.js

index 344bc57..6ae0d66 100644 (file)
 Roo.bootstrap.Radio = function(config){
     Roo.bootstrap.Radio.superclass.constructor.call(this, config);
     
+    this.addEvents({
+        /**
+        * @event check
+        * Fires when the element is checked or unchecked.
+        * @param {Roo.bootstrap.Radio} this This radio
+        * @param {Boolean} checked The new checked value
+        */
+       check : true
+    });
 };
 
 Roo.extend(Roo.bootstrap.Radio, Roo.bootstrap.Component, {