@refinitiv-ui/efx-grid 6.0.77 → 6.0.78

Sign up to get free protection for your applications and to get access to all the features.
@@ -19147,6 +19147,10 @@ DataView.prototype._collapsed = false;
19147
19147
  /** @private
19148
19148
  * @type {boolean}
19149
19149
  */
19150
+ DataView.prototype._collapsible = true;
19151
+ /** @private
19152
+ * @type {boolean}
19153
+ */
19150
19154
  DataView.prototype._showOnlyFirstMember = false;
19151
19155
  /** @private
19152
19156
  * @type {boolean}
@@ -20597,7 +20601,7 @@ DataView.prototype._setCollapse = function(collapsed) {
20597
20601
  }
20598
20602
  }
20599
20603
  } else if (this._isHeaderRowShown()) { // Only groups with visible group header can be expanded/collapsed
20600
- if (this._collapsed !== collapsed) {
20604
+ if (this._collapsible && this._collapsed !== collapsed) {
20601
20605
  this._collapsed = collapsed;
20602
20606
  return true;
20603
20607
  }
@@ -20671,6 +20675,20 @@ DataView.prototype.setDefaultCollapse = function(collapse) {
20671
20675
  DataView.prototype.getDefaultCollapse = function() {
20672
20676
  return !!this._shared.defaultCollapse; // it can be null, convert to boolean
20673
20677
  };
20678
+ /**
20679
+ * @public
20680
+ * @return {boolean}
20681
+ */
20682
+ DataView.prototype.isCollapsible = function() {
20683
+ return this._collapsible;
20684
+ };
20685
+ /**
20686
+ * @public
20687
+ * @param {boolean=} bool=true, if set it to false, it will be enable collapsing
20688
+ */
20689
+ DataView.prototype.disableCollapsing = function(bool) {
20690
+ this._collapsible = !(bool !== false);
20691
+ };
20674
20692
  /** @private
20675
20693
  * @return {?Array.<string>}
20676
20694
  */
@@ -26109,7 +26127,7 @@ Core_Core.prototype._firstRendered = false;
26109
26127
  * @return {string}
26110
26128
  */
26111
26129
  Core_Core.getVersion = function () {
26112
- return "5.1.83";
26130
+ return "5.1.84";
26113
26131
  };
26114
26132
  /** {@link ElementWrapper#dispose}
26115
26133
  * @override