FileViewer
FileViewer previews PDF documents, images, video, and audio inline and falls back to a download link for other file types. Place it inside a Dialog for document review workflows such as signatures.
| Parameter | Description |
|---|---|
| src | Solution-relative file URL, resolved like Link href. |
| title | Accessible name for the previewed document. |
| if | Conditional rendering expression. |
Usage
xml<FileViewer src="/api/items/${item.id}/attachments/${attachment.id}" title="$attachment.name" />