mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
[ADF-2352] project toolbar buttons for the Viewer (#2989)
* project toolbar buttons for the Viewer * test fixes
This commit is contained in:
committed by
Eugenio Romano
parent
1c48a3c0df
commit
f7cfccc7d9
BIN
docs/docassets/images/viewer-toolbar-actions.png
Normal file
BIN
docs/docassets/images/viewer-toolbar-actions.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 13 KiB |
@@ -254,6 +254,31 @@ You can replace standard viewer toolbar with your custom implementation.
|
||||
|
||||
Everything you put inside the "adf-viewer-toolbar" tags is going to be rendered instead of the toolbar.
|
||||
|
||||
### Custom toolbar buttons
|
||||
|
||||
If you are okay with the custom toolbar behaviour but want to add some extra buttons,
|
||||
you can do that like in the following example:
|
||||
|
||||
```html
|
||||
<adf-viewer>
|
||||
<adf-viewer-toolbar-actions>
|
||||
<button mat-icon-button>
|
||||
<mat-icon>alarm</mat-icon>
|
||||
</button>
|
||||
<button mat-icon-button>
|
||||
<mat-icon>backup</mat-icon>
|
||||
</button>
|
||||
<button mat-icon-button>
|
||||
<mat-icon>bug_report</mat-icon>
|
||||
</button>
|
||||
</adf-viewer-toolbar-actions>
|
||||
</adf-viewer>
|
||||
```
|
||||
|
||||
You should now see the following result at runtime:
|
||||
|
||||

|
||||
|
||||
### Custom sidebar
|
||||
|
||||
The Viewer component also supports custom sidebar components and layouts.
|
||||
|
Reference in New Issue
Block a user