Commit 61be05f5 authored by Alexander.Trofimov's avatar Alexander.Trofimov

add setColumnWidth in builder

parent 2ed091da
...@@ -34,7 +34,7 @@ ...@@ -34,7 +34,7 @@
}; };
/** /**
* Remove element by specified position. * Returns an object that represents the range
* @memberof ApiWorksheet * @memberof ApiWorksheet
* @param {string} sRange * @param {string} sRange
* @returns {ApiRange} * @returns {ApiRange}
...@@ -44,7 +44,17 @@ ...@@ -44,7 +44,17 @@
}; };
/** /**
* Remove element by specified position. * Set column width
* @memberof ApiWorksheet
* @param {number} column
* @param {number} width
*/
ApiWorksheet.prototype.setColumnWidth = function(column, width) {
this.worksheet.setColWidth(width, column, column);
};
/**
* Set cell value
* @memberof ApiRange * @memberof ApiRange
* @param {string} val * @param {string} val
*/ */
...@@ -58,6 +68,7 @@ ...@@ -58,6 +68,7 @@
Api.prototype["GetActiveSheet"] = Api.prototype.GetActiveSheet; Api.prototype["GetActiveSheet"] = Api.prototype.GetActiveSheet;
ApiWorksheet.prototype["getRange"] = ApiWorksheet.prototype.getRange; ApiWorksheet.prototype["getRange"] = ApiWorksheet.prototype.getRange;
ApiWorksheet.prototype["setColumnWidth"] = ApiWorksheet.prototype.setColumnWidth;
ApiRange.prototype["setValue"] = ApiRange.prototype.setValue; ApiRange.prototype["setValue"] = ApiRange.prototype.setValue;
}(window, null)); }(window, null));
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