X-Git-Url: http://git.ithinksw.org/extjs.git/blobdiff_plain/7a654f8d43fdb43d78b63d90528bed6e86b608cc..6746dc89c47ed01b165cc1152533605f97eb8e8d:/docs/source/CheckboxModel.html diff --git a/docs/source/CheckboxModel.html b/docs/source/CheckboxModel.html index 313eee3e..139ab5ea 100644 --- a/docs/source/CheckboxModel.html +++ b/docs/source/CheckboxModel.html @@ -1,4 +1,21 @@ -Sencha Documentation Project
/**
+
+
+
+  
+  The source code
+  
+  
+  
+  
+
+
+  
/**
  * @class Ext.selection.CheckboxModel
  * @extends Ext.selection.RowModel
  *
@@ -9,16 +26,17 @@
  * and according to the 'injectCheckbox' configuration.
  */
 Ext.define('Ext.selection.CheckboxModel', {
+    alias: 'selection.checkboxmodel',
     extend: 'Ext.selection.RowModel',
 
-    /**
+    /**
      * @cfg {String} mode
      * Modes of selection.
      * Valid values are SINGLE, SIMPLE, and MULTI. Defaults to 'MULTI'
      */
     mode: 'MULTI',
 
-    /**
+    /**
      * @cfg {Mixed} injectCheckbox
      * Instructs the SelectionModel whether or not to inject the checkbox header
      * automatically or not. (Note: By not placing the checkbox in manually, the
@@ -28,7 +46,7 @@ Ext.define('Ext.selection.CheckboxModel', {
      */
     injectCheckbox: 0,
 
-    /**
+    /**
      * @cfg {Boolean} checkOnly <tt>true</tt> if rows can only be selected by clicking on the
      * checkbox column (defaults to <tt>false</tt>).
      */
@@ -55,7 +73,7 @@ Ext.define('Ext.selection.CheckboxModel', {
         headerCt.on('headerclick', this.onHeaderClick, this);
     },
 
-    /**
+    /**
      * Toggle the ui header between checked and unchecked state.
      * @param {Boolean} isChecked
      * @private
@@ -74,7 +92,7 @@ Ext.define('Ext.selection.CheckboxModel', {
         }
     },
 
-    /**
+    /**
      * Toggle between selecting all and deselecting all when clicking on
      * a checkbox header.
      */
@@ -92,7 +110,7 @@ Ext.define('Ext.selection.CheckboxModel', {
         }
     },
 
-    /**
+    /**
      * Retrieve a configuration to be used in a HeaderContainer.
      * This should be used when injectCheckbox is set to false.
      */
@@ -111,7 +129,7 @@ Ext.define('Ext.selection.CheckboxModel', {
         };
     },
 
-    /**
+    /**
      * Generates the HTML to be rendered in the injected checkbox column for each row.
      * Creates the standard checkbox markup by default; can be overridden to provide custom rendering.
      * See {@link Ext.grid.column.Column#renderer} for description of allowed parameters.
@@ -146,15 +164,18 @@ Ext.define('Ext.selection.CheckboxModel', {
         }
     },
 
-    /**
+    /**
      * Synchronize header checker value as selection changes.
      * @private
      */
-    onSelectChange: function(record, isSelected) {
-        this.callParent([record, isSelected]);
+    onSelectChange: function() {
+        this.callParent(arguments);
+
         // check to see if all records are selected
         var hdSelectStatus = this.selected.getCount() === this.store.getCount();
         this.toggleUiHeader(hdSelectStatus);
     }
 });
-
\ No newline at end of file +
+ +