asc_setSheetViewSettings -> asc_setDisplayGridlines + asc_setDisplayHeadings
This commit is contained in:
parent
d5df1f4302
commit
3612a75823
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue