mirror of
https://github.com/Alfresco/alfresco-content-app.git
synced 2025-07-24 17:31:52 +00:00
support "disabled" rules for Viewer extensions
This commit is contained in:
@@ -420,6 +420,22 @@ Every custom component receives the following properties at runtime:
|
||||
| url | string | File content URL. |
|
||||
| extension | string | File name extension. |
|
||||
|
||||
#### Rules
|
||||
|
||||
You can also provide a rule for the `disabled` state.
|
||||
That allows to provide conditional availability for Viewer extensions based on external factors.
|
||||
|
||||
```json
|
||||
{
|
||||
"id": "app.viewer.pdf",
|
||||
"fileExtension": "png",
|
||||
"component": "app.components.tabs.metadata",
|
||||
"rules": {
|
||||
"disabled": "isViewerDisabled"
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
### Toolbar actions
|
||||
|
||||
The default toolbar actions from the ACA viewer can be customized through extensions to be replaced, modified or disabled.
|
||||
|
Reference in New Issue
Block a user