@coolon/angular-ui-powerups 2.0.0-alpha.7 → 2.0.0-alpha.8

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.
@@ -1591,13 +1591,23 @@ var PropertyColumnModel = /** @class */ (function (_super) {
1591
1591
  _this.cellRenderer(DefaultCellRendererComponent);
1592
1592
  return _this;
1593
1593
  }
1594
- PropertyColumnModel.prototype.cellRenderer = function (componentType, onComponentInit) {
1594
+ PropertyColumnModel.prototype.cellRenderer = function (componentType, onComponentInitOrOptions) {
1595
1595
  var _this = this;
1596
1596
  this.configureCellRenderer(new ComponentCellRendererPortalRef(componentType, function (component, rowData, firstTime) {
1597
- if (firstTime && onComponentInit) {
1598
- onComponentInit(component);
1597
+ if (firstTime) {
1598
+ if (___default.isFunction(onComponentInitOrOptions)) {
1599
+ onComponentInitOrOptions(component);
1600
+ }
1601
+ else {
1602
+ if (___default.isFunction(onComponentInitOrOptions === null || onComponentInitOrOptions === void 0 ? void 0 : onComponentInitOrOptions.onComponentInit)) {
1603
+ onComponentInitOrOptions.onComponentInit(component);
1604
+ }
1605
+ }
1599
1606
  }
1600
1607
  component.value = _this._format(rowData.row[_this.property]);
1608
+ if (!___default.isFunction(onComponentInitOrOptions) && ___default.isFunction(onComponentInitOrOptions === null || onComponentInitOrOptions === void 0 ? void 0 : onComponentInitOrOptions.onRowUpdate)) {
1609
+ onComponentInitOrOptions.onRowUpdate(component, rowData.row);
1610
+ }
1601
1611
  }));
1602
1612
  return this;
1603
1613
  };