mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-05-12 17:04:57 +00:00
* MNT-24660 Added possibility to hide and show viewing of versions when calling openUploadNewVersionDialog function * MNT-24660 Unit tests * MNT-24660 Allow to set allowVersionDelete and showActions by new version uploader service * MNT-24660 Unit tests and documentation * MNT-24660 Reformated documentation table * MNT-24660 Fixed sonar issues * MNT-24660 Fix sonar and additional fixes
53 lines
1.8 KiB
Markdown
53 lines
1.8 KiB
Markdown
---
|
|
Title: Version List component
|
|
Added: v4.1.1
|
|
Status: Active
|
|
Last reviewed: 2024-10-21
|
|
---
|
|
|
|
# [New Version Uploader dialog](../../../lib/content-services/src/lib/new-version-uploader/new-version-uploader.dialog.ts "Defined in new-version-uploader.dialog.ts")
|
|
|
|
Displays list of versions history of a node in a dialog.
|
|
|
|

|
|
### Basic Usage
|
|
|
|
```ts
|
|
this.dialog.open<NewVersionUploaderDialogComponent, NewVersionUploaderDialogData>(
|
|
NewVersionUploaderDialogComponent,
|
|
{
|
|
data: {
|
|
file,
|
|
node,
|
|
currentVersion: version,
|
|
showComments: true,
|
|
allowDownload: true,
|
|
showVersionsOnly: true,
|
|
allowViewVersions: true,
|
|
allowVersionDelete: true,
|
|
showActions: true
|
|
},
|
|
width: '630px'
|
|
}
|
|
)
|
|
```
|
|
|
|
## Class members
|
|
|
|
### Events
|
|
|
|
| Name | Type | Description |
|
|
|--------------|--------------------------------------------------------------------------------------|-----------------------------------|
|
|
| dialogAction | [`EventEmitter`](https://angular.io/api/core/EventEmitter)`<NewVersionUploaderData>` | Emitted when any action occurs. |
|
|
| uploadError | [`EventEmitter`](https://angular.io/api/core/EventEmitter)`<any>` | Emitted when upload error occurs. |
|
|
|
|
## Details
|
|
|
|
This component can be used by calling openUploadNewVersionDialog function of [New Version Uploader service](../services/new-version-uploader.dialog.service.md).
|
|
|
|
## See also
|
|
|
|
- [Version manager component](version-manager.component.md)
|
|
- [New Version Uploader service](../services/new-version-uploader.dialog.service.md)
|
|
- [Version List component](version-list.component.md)
|