@syncfusion/ej2-multicolumn-combobox 26.2.8 → 26.2.9

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.
@@ -158,6 +158,12 @@ __decorate([
158
158
  __decorate([
159
159
  Property('Default')
160
160
  ], GridSettings.prototype, "gridLines", void 0);
161
+ __decorate([
162
+ Property(false)
163
+ ], GridSettings.prototype, "allowTextWrap", void 0);
164
+ __decorate([
165
+ Property(WrapMode.Both)
166
+ ], GridSettings.prototype, "textWrapMode", void 0);
161
167
  /**
162
168
  * The `MultiColumnComboBox` allows the user to search and select values from a list. It provides a list of options that can be selected using a filter input.
163
169
  * The selected value will be displayed in the input element.
@@ -261,7 +267,8 @@ let MultiColumnComboBox = class MultiColumnComboBox extends Component {
261
267
  enableRtl: this.enableRtl,
262
268
  editSettings: { allowAdding: false },
263
269
  query: this.query,
264
- allowTextWrap: this.allowTextWrap,
270
+ allowTextWrap: this.gridSettings.allowTextWrap,
271
+ textWrapSettings: { wrapMode: this.gridSettings.textWrapMode },
265
272
  height: this.popupHeight,
266
273
  allowMultiSorting: this.sortType.toString().toLowerCase() === 'multiplecolumns' && this.allowSorting,
267
274
  rowTemplate: this.itemTemplate,
@@ -306,7 +313,6 @@ let MultiColumnComboBox = class MultiColumnComboBox extends Component {
306
313
  this.gridObj.sortSettings = { columns: [{ field: this.fields.text, direction: sortOrder === 'ascending' ?
307
314
  SortOrder.Ascending : SortOrder.Descending }] };
308
315
  }
309
- this.gridObj.textWrapSettings.wrapMode = this.textWrapMode;
310
316
  this.gridObj.appendTo(this.gridEle);
311
317
  }
312
318
  // eslint-disable @typescript-eslint/no-explicit-any
@@ -1530,6 +1536,12 @@ let MultiColumnComboBox = class MultiColumnComboBox extends Component {
1530
1536
  this.gridObj.gridLines = newProp.gridSettings.gridLines;
1531
1537
  this.gridObj.rowHeight = newProp.gridSettings.rowHeight;
1532
1538
  this.gridObj.enableAltRow = newProp.gridSettings.enableAltRow;
1539
+ if (!(isNullOrUndefined(newProp.gridSettings.allowTextWrap))) {
1540
+ this.gridObj.allowTextWrap = newProp.gridSettings.allowTextWrap;
1541
+ }
1542
+ if (!(isNullOrUndefined(newProp.gridSettings.textWrapMode))) {
1543
+ this.gridObj.textWrapSettings.wrapMode = newProp.gridSettings.textWrapMode;
1544
+ }
1533
1545
  }
1534
1546
  break;
1535
1547
  case 'fields':
@@ -1555,20 +1567,6 @@ let MultiColumnComboBox = class MultiColumnComboBox extends Component {
1555
1567
  this.allowSorting = this.gridObj.allowSorting = newProp.allowSorting;
1556
1568
  }
1557
1569
  break;
1558
- case 'allowTextWrap':
1559
- if (this.gridObj) {
1560
- if (!(isNullOrUndefined(newProp.allowTextWrap))) {
1561
- this.gridObj.allowTextWrap = newProp.allowTextWrap;
1562
- }
1563
- }
1564
- break;
1565
- case 'textWrapMode':
1566
- if (this.gridObj) {
1567
- if (!(isNullOrUndefined(newProp.textWrapMode))) {
1568
- this.gridObj.textWrapSettings.wrapMode = newProp.textWrapMode;
1569
- }
1570
- }
1571
- break;
1572
1570
  case 'columns':
1573
1571
  if (this.gridObj) {
1574
1572
  gridColumns = this.getGridColumns();
@@ -1651,12 +1649,6 @@ __decorate([
1651
1649
  __decorate([
1652
1650
  Property()
1653
1651
  ], MultiColumnComboBox.prototype, "query", void 0);
1654
- __decorate([
1655
- Property(false)
1656
- ], MultiColumnComboBox.prototype, "allowTextWrap", void 0);
1657
- __decorate([
1658
- Property(WrapMode.Both)
1659
- ], MultiColumnComboBox.prototype, "textWrapMode", void 0);
1660
1652
  __decorate([
1661
1653
  Property(null)
1662
1654
  ], MultiColumnComboBox.prototype, "itemTemplate", void 0);