2 * @class Ext.grid.CellEditor
4 * Internal utility class that provides default configuration for cell editing.
7 Ext.define('Ext.grid.CellEditor', {
9 constructor: function(config) {
11 config.field.monitorTab = false;
16 this.callParent(arguments);
21 * Hide the grid cell when editor is shown.
24 var first = this.boundEl.first();
28 this.callParent(arguments);
33 * Show grid cell when editor is hidden.
36 var first = this.boundEl.first();
40 this.callParent(arguments);
45 * Fix checkbox blur when it is clicked.
47 afterRender: function() {
48 this.callParent(arguments);
49 var field = this.field;
50 if (field.isXType('checkboxfield')) {
51 field.mon(field.inputEl, 'mousedown', this.onCheckBoxMouseDown, this);
52 field.mon(field.inputEl, 'click', this.onCheckBoxClick, this);
58 * Because when checkbox is clicked it loses focus completeEdit is bypassed.
60 onCheckBoxMouseDown: function() {
61 this.completeEdit = Ext.emptyFn;
66 * Restore checkbox focus and completeEdit method.
68 onCheckBoxClick: function() {
69 delete this.completeEdit;
70 this.field.focus(false, 10);
75 cls: Ext.baseCSSPrefix + "small-editor " + Ext.baseCSSPrefix + "grid-editor",