handsontable-helpers
Advanced tools
Comparing version 1.0.10 to 1.0.11
@@ -69,3 +69,3 @@ /** | ||
col.type = HH.typesMap[col.jsType]; | ||
if (prop == "_id") col.readOnly = true; | ||
if (["id", "_id", "objectId"].indexOf(prop) != -1) col.readOnly = true; | ||
if (col.jsType == "date") col.dateFormat = 'DD-MMM-YYYY'; | ||
@@ -196,2 +196,18 @@ return col; | ||
HH.afterRemoveRow = function(rowNum, numRows, idArr, func) { | ||
return new Promise(function(res, err) { | ||
(function next() { | ||
func(rowNum, function() { | ||
rowNum++; | ||
numRows--; | ||
if (numRows > 0) next(); | ||
else res(); | ||
}); | ||
})(); | ||
}); | ||
}; | ||
HH.convArrArrToArrObj = function(hotData, minSpareRows, colHeaders) { | ||
@@ -198,0 +214,0 @@ var arr = []; |
{ | ||
"name": "handsontable-helpers", | ||
"version": "1.0.10", | ||
"version": "1.0.11", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "handsontable.helpers.js", |
10918
238