Roo/grid/CellSelectionModel.js
authorAlan Knowles <alan@akbkhome.com>
Tue, 6 Dec 2011 07:42:30 +0000 (15:42 +0800)
committerAlan Knowles <alan@akbkhome.com>
Tue, 6 Dec 2011 07:42:30 +0000 (15:42 +0800)
Roo/grid/CellSelectionModel.js

index 679b9d2..231e2ea 100644 (file)
@@ -48,7 +48,14 @@ Roo.grid.CellSelectionModel = function(config){
                <li>o.cell: An array of [rowIndex, columnIndex]</li>
                </ul>
             */
-           "selectionchange" : true
+           "selectionchange" : true,
+        /**
+            * @event tabend
+            * Fires when the tab (or enter) was pressed on the last editable cell
+            * You can use this to trigger add new row.
+            * @param {SelectionModel} this
+            */
+           "tabend" : true
     });
     Roo.grid.CellSelectionModel.superclass.constructor.call(this);
 };