mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
[ADF-3564] Added brief docs for viewer printing feature (#3850)
This commit is contained in:
committed by
Eugenio Romano
parent
d53db9ca77
commit
4a9431bf10
@@ -26,6 +26,7 @@ See it live: [Viewer Quickstart](https://embed.plnkr.co/iTuG1lFIXfsP95l6bDW6/)
|
|||||||
- [Configuring PDF.js library](#configuring-pdfjs-library)
|
- [Configuring PDF.js library](#configuring-pdfjs-library)
|
||||||
- [Extending the Viewer](#extending-the-viewer)
|
- [Extending the Viewer](#extending-the-viewer)
|
||||||
- [Custom layout](#custom-layout)
|
- [Custom layout](#custom-layout)
|
||||||
|
- [Printing](#printing)
|
||||||
- [See also](#see-also)
|
- [See also](#see-also)
|
||||||
|
|
||||||
## Basic usage
|
## Basic usage
|
||||||
@@ -470,6 +471,21 @@ You can enable a custom "More actions" menu by providing at least one action ins
|
|||||||
|
|
||||||

|

|
||||||
|
|
||||||
|
### Printing
|
||||||
|
|
||||||
|
You can configure the Viewer to let the user print the displayed content. The
|
||||||
|
component will show a "Print" button if the `allowPrint` property is set to
|
||||||
|
true.
|
||||||
|
|
||||||
|
```html
|
||||||
|
<adf-viewer [allowPrint]="true">
|
||||||
|
...
|
||||||
|
</adf-viewer>
|
||||||
|
```
|
||||||
|
|
||||||
|
You can also use the `print` event to get notification when the user prints some
|
||||||
|
content.
|
||||||
|
|
||||||
## See also
|
## See also
|
||||||
|
|
||||||
- [Document List component](../content-services/document-list.component.md)
|
- [Document List component](../content-services/document-list.component.md)
|
||||||
|
Reference in New Issue
Block a user