[ADF-2136] support shared links and renditions in the Viewer (#2826)

* support previewing shared link content

* remove unused router instance

* docs update

* support 'shared links' preview in the Viewer
This commit is contained in:
Denys Vuika
2018-01-12 17:12:34 +00:00
committed by Eugenio Romano
parent 46ad98cd8b
commit 713e4bb33b
7 changed files with 123 additions and 8 deletions

View File

@@ -49,6 +49,7 @@ Using with file url:
| Name | Type | Default | Description |
| ---- | ---- | ------- | ----------- |
| fileNodeId | string | | Node Id of the file to load |
| sharedLinkId | string | | Shared link id (to display shared file) |
| urlFile | string | | If you want to load an external file that does not come from ECM you can use this Url where to load the file |
| urlFileViewer | string | null | Viewer to use with the `urlFile` address (`pdf`, `image`, `media`, `text`). Used when `urlFile` has no filename and extension. |
| urlBlob | Blob | | If you want to load a Blob File |
@@ -112,6 +113,19 @@ export class OverlayViewerComponent {
}
```
### Custom file parameters
You can provide custom file parameters, for example a value for the `mimeType` or `displayName` when using URL values that have no file names or extensions:
```html
<adf-viewer
[displayName]="fileName"
[allowGoBack]="false"
[mimeType]="mimeType"
[urlFile]="fileUrl">
</adf-viewer>
```
### Supported file formats
| Type | Extension |