@syncfusion/ej2-ribbon 26.1.40 → 26.1.41

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -5410,9 +5410,11 @@ var Ribbon = /** @__PURE__ @class */ (function (_super) {
5410
5410
  }
5411
5411
  });
5412
5412
  };
5413
- Ribbon.prototype.toggleLayout = function () {
5413
+ Ribbon.prototype.toggleLayout = function (args) {
5414
5414
  this.setProperties({ activeLayout: this.activeLayout === 'Simplified' ? 'Classic' : 'Simplified' }, true);
5415
5415
  this.switchLayout();
5416
+ var eventArgs = { activeLayout: this.activeLayout, event: args };
5417
+ this.trigger('ribbonLayoutSwitched', eventArgs);
5416
5418
  };
5417
5419
  Ribbon.prototype.tabCreated = function () {
5418
5420
  if (!this.hideLayoutSwitcher) {
@@ -7174,10 +7176,10 @@ var Ribbon = /** @__PURE__ @class */ (function (_super) {
7174
7176
  id: this.tabObj.element.id + COLLAPSE_BUTTON_ID,
7175
7177
  attrs: { 'tabindex': '0', 'type': 'button', 'aria-label': 'Layout Switcher', 'role': 'button' }
7176
7178
  });
7177
- this.collapseButton.onclick = function () { _this.toggleLayout(); };
7179
+ this.collapseButton.onclick = function (e) { _this.toggleLayout(e); };
7178
7180
  this.collapseButton.onkeydown = function (e) {
7179
7181
  if (e.key === 'Enter') {
7180
- _this.toggleLayout();
7182
+ _this.toggleLayout(e);
7181
7183
  }
7182
7184
  };
7183
7185
  this.element.classList.add(RIBBON_COLLAPSIBLE);
@@ -9830,6 +9832,9 @@ var Ribbon = /** @__PURE__ @class */ (function (_super) {
9830
9832
  __decorate$l([
9831
9833
  Event()
9832
9834
  ], Ribbon.prototype, "ribbonCollapsing", void 0);
9835
+ __decorate$l([
9836
+ Event()
9837
+ ], Ribbon.prototype, "ribbonLayoutSwitched", void 0);
9833
9838
  __decorate$l([
9834
9839
  Event()
9835
9840
  ], Ribbon.prototype, "launcherIconClick", void 0);