alfresco-ng2-components/docs/content-services/version-list.component.md
Eugenio Romano a12662e7e2 [ADF-3384] Create automated tests for Version Component (#3631)
* fix version component restore and delete event

* version manager actions

* fix test

* fix unit test

* remove fdescribe

* fix tslint

* fix screenshot rewrite problem

* remove fdescribe

* multi instance try

* remove fdescribe

* try uncomment some test

* error page

* fix user preferences pagiantion

* search page test include

* fix type tslint e2e

* restore code

* default lang momentadapter

* fix test

* [ADF-3384] removed console log from test

* [ADF-3384] adding some fixes for tests and code

* [ADF-3384] fixed some test and code
2018-08-14 15:42:42 +01:00

1.7 KiB

Added, Status, Last reviewed
Added Status Last reviewed
v2.0.0 Experimental 2018-05-08

Version List component

Displays the version history of a node in a Version Manager component.

Basic Usage

<adf-version-list [node]="myNode"></adf-version-list>

Class members

Properties

Name Type Default value Description
allowDownload boolean true Enable/disable downloading a version of the current node.
id string (Deprecated: in 2.3.0)
node MinimalNodeEntryEntity The target node.
showActions boolean true Toggles showing/hiding of version actions
showComments boolean true Toggles showing/hiding of comments

Events

Name Type Description
deleted EventEmitter<MinimalNodeEntryEntity> Emitted when a version is deleted
restored EventEmitter<MinimalNodeEntryEntity> Emitted when a version is restored

Details

This component is used by the Version Manager component to load and displays the version history of a node.

If you want show readonly version list you set this component with showActions false:

<adf-version-list [node]="myNode" [showActions]="false" ></adf-version-list>

See also