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

add format as table to builder

parent b767ad9b
......@@ -52,6 +52,15 @@
return new ApiRange(this.worksheet.getRange2(sRange));
};
/**
* Format as table
* @memberof ApiWorksheet
* @param {string} sRange
*/
ApiWorksheet.prototype.formatAsTable = function(sRange) {
this.worksheet.autoFilters.addAutoFilter('TableStyleLight9', AscCommonExcel.g_oRangeCache.getAscRange(sRange));
};
/**
* Set column width
* @memberof ApiWorksheet
......@@ -120,6 +129,7 @@
ApiWorksheet.prototype["setName"] = ApiWorksheet.prototype.setName;
ApiWorksheet.prototype["getRange"] = ApiWorksheet.prototype.getRange;
ApiWorksheet.prototype["formatAsTable"] = ApiWorksheet.prototype.formatAsTable;
ApiWorksheet.prototype["setColumnWidth"] = ApiWorksheet.prototype.setColumnWidth;
ApiRange.prototype["setValue"] = ApiRange.prototype.setValue;
......
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