Skip to content

Instantly share code, notes, and snippets.

@armanozak
Created June 9, 2020 14:29
Show Gist options
  • Save armanozak/cc3ba16b1d1d5586522db3475360c562 to your computer and use it in GitHub Desktop.
Save armanozak/cc3ba16b1d1d5586522db3475360c562 to your computer and use it in GitHub Desktop.
[Attribute Directives to Avoid Repetition in Angular] Properties passed to ngx-datatable before using directives #blog #angular
<ngx-datatable
[rows]="data$ | async"
[count]="totalCount$ | async"
[loadingIndicator]="list.isLoading$ | async"
[limit]="list.maxResultCount"
[offset]="list.page"
(page)="list.page = $event.offset"
(sort)="sort($event)"
[externalPaging]="true"
[externalSorting]="true"
[headerHeight]="50"
[footerHeight]="50"
rowHeight="auto"
columnMode="force"
class="material"
>
<!-- templates here -->
</ngx-datatable>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment