Commit cf5e40de authored by Alexander.Trofimov's avatar Alexander.Trofimov

add SetNumberFormat to api builder

parent 3840c556
......@@ -549,6 +549,15 @@
this.range.setFill(new AscCommonExcel.RgbColor((r << 16) + (g << 8) + b));
};
/**
* Set the number format.
* @memberof ApiRange
* @param {string} value
*/
ApiRange.prototype.SetNumberFormat = function (value) {
this.range.setNumFormat(value);
};
......@@ -783,6 +792,7 @@
ApiRange.prototype["SetUnderline"] = ApiRange.prototype.SetUnderline;
ApiRange.prototype["SetStrikeout"] = ApiRange.prototype.SetStrikeout;
ApiRange.prototype["SetFillColor"] = ApiRange.prototype.SetFillColor;
ApiRange.prototype["SetNumberFormat"] = ApiRange.prototype.SetNumberFormat;
ApiDrawing.prototype["GetClassType"] = ApiDrawing.prototype.GetClassType;
......
......@@ -8525,8 +8525,8 @@
res = new AscCommonExcel.Border();
// Diagonal
res.d = makeBorder(val[c_oAscBorderOptions.DiagD] || val[c_oAscBorderOptions.DiagU]);
res.dd = val[c_oAscBorderOptions.DiagD] ? true : false;
res.du = val[c_oAscBorderOptions.DiagU] ? true : false;
res.dd = !!val[c_oAscBorderOptions.DiagD];
res.du = !!val[c_oAscBorderOptions.DiagU];
// Vertical
res.l = makeBorder(val[c_oAscBorderOptions.Left]);
res.iv = makeBorder(val[c_oAscBorderOptions.InnerV]);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment