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 (!_.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);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue