mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-05-19 17:14:57 +00:00
[ADF-1015] make "loading" state two-way bindable (document list) (#2052)
* make "loading" state two-way bindable * update documentation - update readme - move "loading" property up to @Input properties
This commit is contained in:
parent
012d62eb55
commit
dd61cf7b45
@ -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 |
|
||||
|
@ -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<any> = new Subject();
|
||||
data: ShareDataTableAdapter;
|
||||
|
||||
loading: boolean = false;
|
||||
private currentNodeAllowableOperations: string[] = [];
|
||||
private CREATE_PERMISSION = 'create';
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user