diff --git a/ng2-components/ng2-alfresco-documentlist/README.md b/ng2-components/ng2-alfresco-documentlist/README.md index 59a543aead..b41fe91d00 100644 --- a/ng2-components/ng2-alfresco-documentlist/README.md +++ b/ng2-components/ng2-alfresco-documentlist/README.md @@ -90,6 +90,7 @@ The properties currentFolderId, folderNode and node are the entry initialization | folderNode | [MinimalNodeEntryEntity](https://github.com/Alfresco/alfresco-js-api/blob/master/src/alfresco-core-rest-api/docs/NodeMinimalEntry.md) | null | Currently displayed folder node | | node | `NodePaging` | null | Document list will show all the node contained in the NodePaging entity | | navigate | boolean | true | Toggles navigation to folder content or file preview | +| loading | boolean | false | Toggles the loading state and animated spinners for the component. Used in combination with `navigate=false` to perform custom navigation and loading state indication. | | navigationMode | string (click,dblclick) | dblclick | User interaction for folder navigation or file preview | | thumbnails | boolean | false | Show document thumbnails rather than icons | | multiselect | boolean | false | Toggles multiselect mode | diff --git a/ng2-components/ng2-alfresco-documentlist/src/components/document-list.component.ts b/ng2-components/ng2-alfresco-documentlist/src/components/document-list.component.ts index 231abc4d89..030e2795e1 100644 --- a/ng2-components/ng2-alfresco-documentlist/src/components/document-list.component.ts +++ b/ng2-components/ng2-alfresco-documentlist/src/components/document-list.component.ts @@ -99,6 +99,9 @@ export class DocumentListComponent implements OnInit, OnChanges, AfterContentIni @Input() rowStyleClass: string; + @Input() + loading: boolean = false; + skipCount: number = 0; pagination: Pagination; @@ -161,7 +164,6 @@ export class DocumentListComponent implements OnInit, OnChanges, AfterContentIni contextActionHandler: Subject = new Subject(); data: ShareDataTableAdapter; - loading: boolean = false; private currentNodeAllowableOperations: string[] = []; private CREATE_PERMISSION = 'create';