Skip to content

Commit

Permalink
New Events oneditionstart, oneditionend
Browse files Browse the repository at this point in the history
  • Loading branch information
paulhodel authored and paulhodel committed Aug 5, 2019
1 parent dc79fd9 commit b157626
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions dist/jexcel.js
Original file line number Diff line number Diff line change
Expand Up @@ -1270,6 +1270,13 @@ var jexcel = (function(el, options) {
var y = cell.getAttribute('data-y');
var x = cell.getAttribute('data-x');

// On edition start
if (! obj.ignoreEvents) {
if (typeof(obj.options.oneditionstart) == 'function') {
obj.options.oneditionstart(el, cell, x, y);
}
}

// Overflow
if (x > 0) {
obj.records[y][x-1].style.overflow = 'hidden';
Expand Down Expand Up @@ -1504,6 +1511,13 @@ var jexcel = (function(el, options) {

// Finish edition
obj.edition = null;

// On edition end
if (! obj.ignoreEvents) {
if (typeof(obj.options.oneditionend) == 'function') {
obj.options.oneditionend(el, cell, x, y, value);
}
}
},

/**
Expand Down

0 comments on commit b157626

Please sign in to comment.