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 (!_.isUndefined(opts.headings)) {
if (this.api) { if (this.api) {
var current = this.api.asc_getSheetViewSettings(); this.api.asc_setDisplayHeadings(!opts.headings);
current.asc_setShowRowColHeaders(!opts.headings);
this.api.asc_setSheetViewSettings(current);
} }
} }
if (!_.isUndefined(opts.gridlines)) { if (!_.isUndefined(opts.gridlines)) {
if (this.api) { if (this.api) {
current = this.api.asc_getSheetViewSettings(); this.api.asc_setDisplayGridlines(!opts.gridlines);
current.asc_setShowGridLines(!opts.gridlines);
this.api.asc_setSheetViewSettings(current);
} }
} }