mirror of
https://github.com/Alfresco/alfresco-content-app.git
synced 2025-05-12 17:04:46 +00:00
[ACA-1815] update documentation for the viewer toolbar actions (#672)
This commit is contained in:
parent
8d9d3dbc45
commit
fe7fbcb004
@ -27,7 +27,9 @@ You can create plugins that change, toggle or extend the following areas:
|
|||||||
- separators
|
- separators
|
||||||
- Viewer actions
|
- Viewer actions
|
||||||
- "Open With" entries
|
- "Open With" entries
|
||||||
- "More actions" toolbar entries
|
- toolbar entries
|
||||||
|
- buttons
|
||||||
|
- "More actions" buttons
|
||||||
|
|
||||||
Extensions can also:
|
Extensions can also:
|
||||||
|
|
||||||
@ -860,7 +862,8 @@ All the customisations are stored in the `features` section of the configuration
|
|||||||
"toolbar": [],
|
"toolbar": [],
|
||||||
"contextMenu": [],
|
"contextMenu": [],
|
||||||
"viewer": {
|
"viewer": {
|
||||||
"toolbar:": [],
|
"toolbarActions:": [],
|
||||||
|
"toolbarMoreMenu:": [],
|
||||||
"openWith": [],
|
"openWith": [],
|
||||||
"content": []
|
"content": []
|
||||||
},
|
},
|
||||||
@ -1192,6 +1195,7 @@ declared in the `rules` section:
|
|||||||
Viewer component in ACA supports the following extension points:
|
Viewer component in ACA supports the following extension points:
|
||||||
|
|
||||||
- Content Viewers
|
- Content Viewers
|
||||||
|
- toolbar actions
|
||||||
- `More` toolbar actions
|
- `More` toolbar actions
|
||||||
- `Open With` actions
|
- `Open With` actions
|
||||||
|
|
||||||
@ -1204,7 +1208,8 @@ Viewer component in ACA supports the following extension points:
|
|||||||
"features": {
|
"features": {
|
||||||
"viewer": {
|
"viewer": {
|
||||||
"content": [],
|
"content": [],
|
||||||
"toolbar:": [],
|
"toolbarActions:": [],
|
||||||
|
"toolbarMoreMenu:": [],
|
||||||
"openWith": []
|
"openWith": []
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -1253,6 +1258,37 @@ Every custom component receives the following properties at runtime:
|
|||||||
|
|
||||||
#### Toolbar actions
|
#### Toolbar actions
|
||||||
|
|
||||||
|
The default toolbar actions from the ACA viewer can be customised through extensions to be replaced, modified or disabled.
|
||||||
|
New viewer toolbar actions can also be added from the extensions config:
|
||||||
|
|
||||||
|
```json
|
||||||
|
{
|
||||||
|
"$schema": "../../../extension.schema.json",
|
||||||
|
"$version": "1.0.0",
|
||||||
|
"$name": "plugin1",
|
||||||
|
|
||||||
|
"features": {
|
||||||
|
"viewer": {
|
||||||
|
"toolbarActions": [
|
||||||
|
{
|
||||||
|
"id": "app.viewer.versions",
|
||||||
|
"order": 500,
|
||||||
|
"title": "APP.ACTIONS.VERSIONS",
|
||||||
|
"icon": "history",
|
||||||
|
"actions": {
|
||||||
|
"click": "MANAGE_VERSIONS"
|
||||||
|
},
|
||||||
|
"rules": {
|
||||||
|
"visible": "app.toolbar.versions"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"toolbarMoreMenu": [...]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
The ADF Viewer component allows providing custom entries for the `More` menu button on the toolbar.
|
The ADF Viewer component allows providing custom entries for the `More` menu button on the toolbar.
|
||||||
The ACA provides an extension point for this menu that you can utilise to populate custom menu items:
|
The ACA provides an extension point for this menu that you can utilise to populate custom menu items:
|
||||||
|
|
||||||
@ -1264,7 +1300,8 @@ The ACA provides an extension point for this menu that you can utilise to popula
|
|||||||
|
|
||||||
"features": {
|
"features": {
|
||||||
"viewer": {
|
"viewer": {
|
||||||
"toolbar:": [
|
"toolbarActions": [...],
|
||||||
|
"toolbarMoreMenu": [
|
||||||
{
|
{
|
||||||
"id": "app.viewer.share",
|
"id": "app.viewer.share",
|
||||||
"order": 300,
|
"order": 300,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user