alfresco-ng2-components/docs/core/content.widget.md

32 lines
637 B
Markdown

---
Title: APS Content Component
Added: v2.0.0
Status: Active
---
# [APS Content Component](../../lib/core/form/components/widgets/content/content.widget.ts "Defined in content.widget.ts")
Shows the content preview.
## Basic Usage
```html
<adf-content
[contentId]="'1001'">
</adf-content>
```
### 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. |