diff --git a/docs/tutorials/custom-viewer.md b/docs/tutorials/custom-viewer.md index 3bbccb1b9..fffe97fcc 100644 --- a/docs/tutorials/custom-viewer.md +++ b/docs/tutorials/custom-viewer.md @@ -74,7 +74,7 @@ You also need to provide in your `app.extension.json` its details: "viewer": { "content": [ { - "id": "dev.tools.viewer.viewer", + "id": "my.custom.viewer", "fileExtension": ["png", "jpg"], "component": "your-extension.main.component" } @@ -83,3 +83,24 @@ You also need to provide in your `app.extension.json` its details: } } ``` + +You can also use the `*` wildcard symbol to make your custom viewer implementation handle all files: + +```json +{ + "$version": "1.0.0", + "$name": "my viewer extension", + "$description": "my viewer plugin", + "features": { + "viewer": { + "content": [ + { + "id": "my.custom.viewer", + "fileExtension": "*", + "component": "your-extension.main.component" + } + ] + } + } +} +```