mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-31 17:38:48 +00:00
Create a new activiti content component that provide the file preview (#1516)
* #1236 Add activiti content component * fix wrong name * Fix unit test import * Rollback api changes * #1236 fix preview using blob * Fix after review
This commit is contained in:
committed by
Mario Romano
parent
112d7a2d0e
commit
d3d67c5934
@@ -351,6 +351,32 @@ There are two additional functions that can be of a great value when controlling
|
||||
**Please note that if `event.preventDefault()` is not called then default outcome behaviour
|
||||
will also be executed after your custom code.**
|
||||
|
||||
## Activiti Content Component
|
||||
|
||||
### Basic usage
|
||||
|
||||
The component shows the content preview.
|
||||
|
||||
```html
|
||||
<activiti-content [contentId]="'1001'"></activiti-content>
|
||||
```
|
||||
|
||||
### Configuration
|
||||
|
||||
#### Properties
|
||||
|
||||
The recommended set of properties can be found in the following table:
|
||||
|
||||
| Name | Type | Default | Description |
|
||||
| --- | --- | --- | --- |
|
||||
| `contentId` | string | | The content id to show. |
|
||||
|
||||
#### Events
|
||||
|
||||
| Name | Description |
|
||||
| --- | --- |
|
||||
| `contentClick` | Invoked when the content is clicked. |
|
||||
|
||||
## FormService
|
||||
|
||||
```ts
|
||||
|
Reference in New Issue
Block a user