[PE] Show anim pane by button in toolbar

This commit is contained in:
Julia.Svinareva
2024-04-05 16:33:17 +03:00
parent 7b042997a9
commit 943a30ab58
2 changed files with 8 additions and 1 deletions

View File

@ -112,6 +112,7 @@ define([
this.api.asc_registerCallback('asc_onAnimPreviewStarted', _.bind(this.onAnimPreviewStarted, this));
this.api.asc_registerCallback('asc_onAnimPreviewFinished', _.bind(this.onAnimPreviewFinished, this));
this.api.asc_onShowAnimTab(!!this._state.onactivetab)
this.api.asc_registerCallback('asc_onCloseAnimPane', _.bind(this.onCloseAnimPane, this));
return this;
},
@ -172,7 +173,12 @@ define([
this.addNewEffect(this._state.Effect, this._state.EffectGroup, groupName,true, this._state.EffectOption, undefined, color);
},
onAnimationPane: function() {
onAnimationPane: function(btn) {
this.api.asc_ShowAnimPane(btn.pressed);
},
onCloseAnimPane: function () {
this.view.btnAnimationPane.toggle(false, true);
},
onAnimationAdditional: function(replace) { // replace or add new additional effect

View File

@ -276,6 +276,7 @@ define([
caption: this.txtAnimationPane,
iconCls: 'toolbar__icon icon',
lock: [_set.slideDeleted, _set.noSlides, _set.timingLock],
enableToggle: true,
dataHint: '1',
dataHintDirection: 'bottom',
dataHintOffset: 'small'