mirror of
https://github.com/ONLYOFFICE/web-apps.git
synced 2026-07-25 11:26:44 +08:00
[PE] Show anim pane by button in toolbar
This commit is contained in:
@ -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
|
||||
|
||||
@ -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'
|
||||
|
||||
Reference in New Issue
Block a user