adf-viewer refresh button

cancel
Showing results for 
Search instead for 
Did you mean: 
anakin98000
Active Member

adf-viewer refresh button

Hi,

is-it possible to add button that reloads the viewer (to check an edition) ?

<adf-viewer *ngIf="!isRefreshing"
[nodeId]="nodeRef"
[displayName]="docName"
[allowDownload]="false"
[allowFullScreen]="false"
[allowGoBack]="false"
[allowRightSidebar]="true"
[showRightSidebar]="false"
[sidebarRightTemplate]="sidebarTemplate"
[thumbnailsTemplate]="customThumbnailsTemplate"
>
<adf-viewer-toolbar-actions >
<button class="btn" mat-icon-button title="Rafraîchir" (click)="refreshDocument()">
<mat-icon>replay</mat-icon>
</button>
</adf-viewer-toolbar-actions>
</adf-viewer>

Here is my function :

refreshDocument() {
console.log('refreshDocument');
// actualisation du document après édition
this.isRefreshing = true;
.....bla bla bla......
this.isRefreshing = false;
}

But it doesn't work

thank you in advance