Basic structure

To use our Datagrid, you do not need to pass an array of data or a JSON configuration to a single element. Instead, we leverage a pure declarative API, just like any other Angular 2 component. You write your HTML just as you would for a basic table, with a *ngFor (or *clrDgItems, see Smart iterator) on the rows to iterate over your data.

User ID Name Creation date Favorite color {{user.id}} {{user.name}} {{user.creation | date}} {{user.color}} {{users.length}} users