Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

how to specify a row's cssClass? #49

Open
devakone opened this issue May 7, 2020 · 0 comments
Open

how to specify a row's cssClass? #49

devakone opened this issue May 7, 2020 · 0 comments

Comments

@devakone
Copy link

devakone commented May 7, 2020

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant