Created
June 9, 2020 14:29
-
-
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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