yohangz/ornamentum

how to specify a row's cssClass?

Opened this issue · 0 comments

This might look like a pretty obvious question but how do you specify cssClass for a row? It's explicit for columns but not so much for rows. I tried using the onRowInit event

onRowInit(row) {
    if (row.item.details && row.item.details.length) {
      row.expanded = true;
    } else {
      row.cssClass = 'hide-collapse-button';
    }
  }

but it fails with the
ERROR Error: ExpressionChangedAfterItHasBeenCheckedError: Expression has changed after it was checked. Previous value: 'ngClass: '. Current value: 'ngClass: hide-collapse-button'.
error.