[ADF-2352] project toolbar buttons for the Viewer (#2989)

* project toolbar buttons for the Viewer

* test fixes
This commit is contained in:
Denys Vuika
2018-02-23 15:48:17 +00:00
committed by Eugenio Romano
parent 1c48a3c0df
commit f7cfccc7d9
8 changed files with 101 additions and 4 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 13 KiB

View File

@@ -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 Toolbar Actions](docassets/images/viewer-toolbar-actions.png)
### Custom sidebar
The Viewer component also supports custom sidebar components and layouts.