mirror of
https://github.com/Alfresco/alfresco-content-app.git
synced 2025-05-12 17:04:46 +00:00
update viewer docs (#2316)
This commit is contained in:
parent
1834f2b4cb
commit
fc07bbae33
@ -74,7 +74,7 @@ You also need to provide in your `app.extension.json` its details:
|
|||||||
"viewer": {
|
"viewer": {
|
||||||
"content": [
|
"content": [
|
||||||
{
|
{
|
||||||
"id": "dev.tools.viewer.viewer",
|
"id": "my.custom.viewer",
|
||||||
"fileExtension": ["png", "jpg"],
|
"fileExtension": ["png", "jpg"],
|
||||||
"component": "your-extension.main.component"
|
"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"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
```
|
||||||
|
Loading…
x
Reference in New Issue
Block a user