diff --git a/src/doby-grid.js b/src/doby-grid.js index 0d2e963..434b75a 100644 --- a/src/doby-grid.js +++ b/src/doby-grid.js @@ -3494,6 +3494,16 @@ var DobyGrid = function (options) { } }; + /** + * Edit the currently active cell (if the table, the column, and the item is editable) + * @method editActiveCell + * @memberof DobyGrid + * + * @param {function} [editor] - Editor factory to use. By default will use global editor. + */ + this.editActiveCell = function (editor) { + makeActiveCellEditable(editor); + }; /** * Given a set of columns, make sure 'minWidth <= width <= maxWidth @@ -6283,7 +6293,7 @@ var DobyGrid = function (options) { * @memberof DobyGrid * @private * - * @param {function} editor - Editor factory to use + * @param {function} [editor] - Editor factory to use. By default will use global editor. */ makeActiveCellEditable = function (editor) { if (!self.active || !self.active.node || self.options.editable !== true) return;