alfresco-ng2-components/docs/content-services/version-list.component.md
Denys Vuika aba9f41af1 [ADF-2672] version manager fixes (#3169)
* fix app config, add extra flags for version manager

* add docs and tests

* update i18n strings

* rename "id" to "nodeId"

* automatically detect permissions

* restore 'id' and mark as deprecated
2018-04-11 17:34:45 +01:00

40 lines
1.2 KiB
Markdown

---
Added: v2.0.0
Status: Experimental
---
# Version List component
Displays the version history of a node in a Version Manager component
### Basic Usage
```html
<adf-version-list [id]="nodeId"></adf-version-list>
```
### Properties
| Name | Type | Default value | Description |
| ---- | ---- | ------------- | ----------- |
| node | `MinimalNodeEntryEntity` | | Node whose version history you want to display. |
| showComments | `boolean` | true | Set this to false if version comments should not be displayed. |
| allowDownload | `boolean` | true | Toggles downloads of previous versions. Set this to false to not show the menu item for version download. |
### DOM events
All DOM events are bubbling and can be handled in the parent components up to the root application component.
| Name | Description |
| --- | --- |
| version-deleted | Raised after a version is deleted. |
| version-restored | Raised after a version is restored. |
## Details
Inside the version manager component, there is the underlying VersionListComponent.
The VersionListComponent loads and displays the version history of a node.
## See also
- [Version manager component](version-manager.component.md)