app directives (#439)

* pagination directive

* document list directive

* cleanup code

* cleanup code

* unified includeFields
This commit is contained in:
Denys Vuika
2018-06-20 12:13:29 +01:00
committed by GitHub
parent c77954099d
commit 9e08b8a232
21 changed files with 305 additions and 265 deletions

View File

@@ -92,16 +92,11 @@
<div class="inner-layout__content">
<div class="inner-layout__panel">
<adf-document-list #documentList
<adf-document-list acaDocumentList #documentList
currentFolderId="-sharedlinks-"
[includeFields]="['isFavorite']"
selectionMode="multiple"
[sorting]="[ 'modifiedAt', 'desc' ]"
[acaSortingPreferenceKey]="sortingPreferenceKey"
(node-dblclick)="showPreview($event.detail?.node)"
(ready)="onDocumentListReady($event, documentList)"
(node-select)="onNodeSelect($event, documentList)"
(node-unselect)="onNodeUnselect($event, documentList)">
(node-dblclick)="showPreview($event.detail?.node)">
<empty-folder-content>
<ng-template>
@@ -167,10 +162,7 @@
</data-columns>
</adf-document-list>
<adf-pagination
[supportedPageSizes]="'pagination.supportedPageSizes' | adfAppConfig"
[target]="documentList"
(changePageSize)="onChangePageSize($event)">
<adf-pagination acaPagination [target]="documentList">
</adf-pagination>
</div>