asc_setSheetViewSettings -> asc_setDisplayGridlines + asc_setDisplayHeadings

This commit is contained in:
Alexander.Trofimov 2016-12-14 15:23:53 +03:00
parent d5df1f4302
commit 3612a75823

View file

@ -2009,17 +2009,13 @@ define([
if (!_.isUndefined(opts.headings)) {
if (this.api) {
var current = this.api.asc_getSheetViewSettings();
current.asc_setShowRowColHeaders(!opts.headings);
this.api.asc_setSheetViewSettings(current);
this.api.asc_setDisplayHeadings(!opts.headings);
}
}
if (!_.isUndefined(opts.gridlines)) {
if (this.api) {
current = this.api.asc_getSheetViewSettings();
current.asc_setShowGridLines(!opts.gridlines);
this.api.asc_setSheetViewSettings(current);
this.api.asc_setDisplayGridlines(!opts.gridlines);
}
}