Urse Daniel 53dcccd7cb
[ACS-721] Improve End/Cancel Editing UX (part 1) - implement single menu option & dialog (#6327)
* added the possibility to show/hide cancel&submit buttons and also to emit the changes without any buttons

* added new doc

* Added optional on variable models to avoid breaking changes (#6328)

Co-authored-by: Vito Albano <vitoalbano@vitoalbano-mbp-0120.local>

* added the possibility to show/hide cancel&submit buttons and also to emit the changes without any buttons

* added new doc

Co-authored-by: Vito <vito.albano@alfresco.com>
Co-authored-by: Vito Albano <vitoalbano@vitoalbano-mbp-0120.local>
2020-11-10 10:18:33 +00:00

3.6 KiB

Title, Added, Status, Last reviewed
Title Added Status Last reviewed
Version Upload component v4.1.0 Experimental 2020-11-06

Version Upload component

Displays the new version's minor/major changes and the optional comment of a node in a Version Manager component.

Basic Usage

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

Class members

Properties

Name Type Default value Description
showUploadButton boolean true Toggles showing/hiding the upload button.
showCancelButton boolean true Toggles showing/hiding the cancel button.
newFileVersion File Used to create a new version of the current node.
node Node The target node.

Events

Name Type Description
success EventEmitter Emitted when a new version is successfully uploaded
error EventEmitter Emitted when a new version throws an error
cancel EventEmitter Emitted when cancelling uploading a new version
versionChanged EventEmitter<string> Emitted when the type of the new version is picked (minor/major)
commentChanged EventEmitter<string> Emitted when the comment of the new version has changed.

Details

This component is used by the Version Manager component to load and displays the new node's version choice - minor/major & comment.

See also