-
Notifications
You must be signed in to change notification settings - Fork 261
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[ACS-721] Improve End/Cancel Editing UX (part 1) - implement single m…
…enu 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>
- Loading branch information
1 parent
a9f9e18
commit 53dcccd
Showing
3 changed files
with
70 additions
and
3 deletions.
There are no files selected for viewing
46 changes: 46 additions & 0 deletions
46
docs/content-services/components/version-upload.component.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
--- | ||
Title: Version Upload component | ||
Added: v4.1.0 | ||
Status: Experimental | ||
Last reviewed: 2020-11-06 | ||
--- | ||
|
||
# [Version Upload component](../../../lib/content-services/src/lib/version-manager/version-upload.component.ts "Defined in version-list.component.ts") | ||
|
||
Displays the new version's minor/major changes and the optional comment of a node in a [Version Manager component](version-manager.component.md). | ||
|
||
### Basic Usage | ||
|
||
```html | ||
<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`](https://github.com/Alfresco/alfresco-js-api/blob/develop/src/api/content-rest-api/docs/Node.md) | | The target node. | | ||
|
||
### Events | ||
|
||
| Name | Type | Description | | ||
| --------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------- | | ||
| success | [`EventEmitter`](https://angular.io/api/core/EventEmitter) | Emitted when a new version is successfully uploaded | | ||
| error | [`EventEmitter`](https://angular.io/api/core/EventEmitter) | Emitted when a new version throws an error | | ||
| cancel | [`EventEmitter`](https://angular.io/api/core/EventEmitter) | Emitted when cancelling uploading a new version | | ||
| versionChanged | [`EventEmitter`](https://angular.io/api/core/EventEmitter)`<string>` | Emitted when the type of the new version is picked (minor/major) | | ||
| commentChanged | [`EventEmitter`](https://angular.io/api/core/EventEmitter)`<string>` | Emitted when the comment of the new version has changed. | | ||
|
||
## Details | ||
|
||
This component is used by the [Version Manager component](version-manager.component.md) to | ||
load and displays the new node's version choice - minor/major & comment. | ||
|
||
## See also | ||
|
||
- [Version manager component](version-manager.component.md) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters