mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-09-17 14:21:29 +00:00
* improved uploading of files - new core/UploadDirective to allow dropping files to any html element - enhanced file dropping for DataTable rows (disabled by default) - enhanced file dropping for DocumentList rows (disabled by default) - upload drop area now handles file uploads for child elements (i.e. rows in the document list) * fix unit tests * unit tests and code cleanup * #1732, fix upload of folders
41 lines
1.6 KiB
HTML
41 lines
1.6 KiB
HTML
<alfresco-document-menu-action
|
|
*ngIf="creationMenuActions"
|
|
[folderId]="currentFolderId"
|
|
(success)="onActionMenuSuccess($event)"
|
|
(error)="onActionMenuError($event)">
|
|
</alfresco-document-menu-action>
|
|
<alfresco-datatable
|
|
[data]="data"
|
|
[actions]="contentActions"
|
|
[actionsPosition]="contentActionsPosition"
|
|
[multiselect]="multiselect"
|
|
[fallbackThumbnail]="fallbackThumbnail"
|
|
[allowDropFiles]="allowDropFiles"
|
|
[contextMenu]="contextMenuActions"
|
|
(showRowContextMenu)="onShowRowContextMenu($event)"
|
|
(showRowActionsMenu)="onShowRowActionsMenu($event)"
|
|
(executeRowAction)="onExecuteRowAction($event)"
|
|
(rowClick)="onRowClick($event)"
|
|
(rowDblClick)="onRowDblClick($event)">
|
|
<div *ngIf="!isEmptyTemplateDefined()">
|
|
<no-content-template>
|
|
<template>
|
|
<div class="document-list_empty_template">
|
|
<div class="document-list__this-space-is-empty">This folder is empty</div>
|
|
<div class="document-list__drag-drop">Drag and Drop</div>
|
|
<div class="document-list__any-files-here-to-add">any files here to add</div>
|
|
<img [src]="emptyFolderImageUrl" class="document-list__empty_doc_lib">
|
|
</div>
|
|
</template>
|
|
</no-content-template>
|
|
</div>
|
|
</alfresco-datatable>
|
|
<alfresco-pagination *ngIf="enablePagination"
|
|
(changePageSize)="onChangePageSize($event)"
|
|
(nextPage)="onNextPage($event)"
|
|
(prevPage)="onPrevPage($event)"
|
|
[pagination]="pagination"
|
|
[supportedPageSizes]="[5, 10, 15, 20]">
|
|
</alfresco-pagination>
|
|
|