mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2026-09-09 18:03:21 +00:00
[ADF-2764] Applied new type linker features to content services docs (#3446)
This commit is contained in:
committed by
Eugenio Romano
parent
8d363be9b3
commit
9bb941887a
@@ -43,26 +43,26 @@ export class AppComponent {
|
||||
| nodeType | `string` | "cm:content" | Custom node type for uploaded file |
|
||||
| rootFolderId | `string` | "-root-" | The ID of the root. Use the nodeId for Content Services or the taskId/processId for Process Services. |
|
||||
| versioning | `boolean` | false | Toggles versioning. |
|
||||
| parentId | `` | | **Deprecated:** 2.4.0 use rootFolderId ID of parent folder node. |
|
||||
| parentId | | | **Deprecated:** 2.4.0 use rootFolderId ID of parent folder node. |
|
||||
|
||||
### Events
|
||||
|
||||
| Name | Type | Description |
|
||||
| --- | --- | --- |
|
||||
| beginUpload | `EventEmitter<UploadFilesEvent>()` | Raised after files or folders dropped and before the upload process starts. |
|
||||
| createFolder | `EventEmitter<Object>` | **Deprecated:** No longer used by the framework |
|
||||
| error | `EventEmitter<Object>` | Emitted when the file is uploaded successfully. |
|
||||
| success | `EventEmitter<Object>` | Emitted when an error occurs. |
|
||||
| -- | -- | -- |
|
||||
| beginUpload | [`EventEmitter`](https://angular.io/api/core/EventEmitter)`<`[`UploadFilesEvent`](../../lib/content-services/upload/components/upload-files.event.ts)`>` | Raised after files or folders dropped and before the upload process starts. |
|
||||
| createFolder | [`EventEmitter`](https://angular.io/api/core/EventEmitter)`<Object>` | Emitted when a folder is created. |
|
||||
| error | `EventEmitter<Object>` | Emitted when an error occurs. |
|
||||
| success | `EventEmitter<Object>` | Emitted when the file is uploaded successfully. |
|
||||
|
||||
## Intercepting uploads
|
||||
|
||||
You can intercept the upload process by utilizing the `beginUpload` event.
|
||||
|
||||
The event has a type of `UploadFilesEvent` and provides the following APIs:
|
||||
The event has a type of [`UploadFilesEvent`](../../lib/content-services/upload/components/upload-files.event.ts) and provides the following APIs:
|
||||
|
||||
* **files**: get access to the FileInfo objects that are prepared for the upload
|
||||
* **pauseUpload**: pause the upload and perform additional tasks, like showing the confirmation dialog
|
||||
* **resumeUpload**: resume the upload process
|
||||
- **files**: get access to the [`FileInfo`](../../lib/core/utils/file-utils.ts) objects that are prepared for the upload
|
||||
- **pauseUpload**: pause the upload and perform additional tasks, like showing the confirmation dialog
|
||||
- **resumeUpload**: resume the upload process
|
||||
|
||||
## Example
|
||||
|
||||
|
||||
Reference in New Issue
Block a user