@wavemaker/app-ng-runtime 11.10.5-next.27872 → 11.10.5-next.27901

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.
@@ -701,6 +701,17 @@
701
701
  this.callDataGridMethod('applyColNgClass', i4.getConditionalClasses(nv, ov), rowIndex, colIndex);
702
702
  }, watchName));
703
703
  },
704
+ registerCollapseOrExpandTitleWatch: (expr, rowData, index, titleName, element) => {
705
+ const row = this.getClonedRowObject(rowData);
706
+ const watchName = `${this.widgetId}_${titleName}_${index}`;
707
+ i2.$unwatch(watchName);
708
+ this.registerDestroyListener(i2.$watch(expr, this.viewParent, { row }, (nv, ov) => {
709
+ element.removeAttribute(`${titleName}.bind`);
710
+ element.setAttribute(titleName, nv);
711
+ if (titleName === 'expandtitle')
712
+ element.setAttribute('title', nv);
713
+ }, watchName));
714
+ },
704
715
  clearCustomExpression: () => {
705
716
  this.customExprViewRef.clear();
706
717
  this.customExprCompiledTl = {};