mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
[ADF-1676] hide fake content in the viewer (#2442)
* hide fake content in the viewer * add missing property
This commit is contained in:
committed by
Eugenio Romano
parent
e903168320
commit
bdd26e6c42
@@ -51,12 +51,13 @@ Using with file url:
|
||||
| showToolbar | boolean | true | Hide or show the toolbars |
|
||||
| displayName | string | | You can specify the name of the file |
|
||||
| allowGoBack | boolean | true | Allow `back` navigation |
|
||||
| allowOpenWith | boolean | true | Toggle `Open With` options |
|
||||
| allowOpenWith | boolean | false | Toggle `Open With` options |
|
||||
| allowDownload | boolean | true | Toggle download feature |
|
||||
| allowPrint | boolean | true | Toggle printing feature |
|
||||
| allowShare | boolean | true | Toggle sharing feature |
|
||||
| allowInfoDrawer | boolean | true | Toogle info drawer feature |
|
||||
| allowPrint | boolean | false | Toggle printing feature |
|
||||
| allowShare | boolean | false | Toggle sharing feature |
|
||||
| allowInfoDrawer | boolean |false | Toogle info drawer feature |
|
||||
| showInfoDrawer | boolean | false | Toggles info drawer visibility. Requires `allowInfoDrawer` to be set to `true`. |
|
||||
| allowMoreActions | boolean | false | Toggles `More actions` feature |
|
||||
|
||||
## Details
|
||||
|
||||
|
@@ -8,14 +8,15 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="adf-pdf-viewer__toolbar">
|
||||
<div class="adf-pdf-viewer__toolbar" *ngIf="showToolbar">
|
||||
<adf-toolbar>
|
||||
|
||||
<ng-container *ngIf="allowThumbnails">
|
||||
<button md-icon-button>
|
||||
<md-icon>dashboard</md-icon>
|
||||
</button>
|
||||
|
||||
<adf-toolbar-divider></adf-toolbar-divider>
|
||||
</ng-container>
|
||||
|
||||
<button
|
||||
id="viewer-previous-page-button"
|
||||
|
@@ -46,6 +46,9 @@ export class PdfViewerComponent implements OnChanges, OnDestroy {
|
||||
@Input()
|
||||
showToolbar: boolean = true;
|
||||
|
||||
@Input()
|
||||
allowThumbnails = false;
|
||||
|
||||
currentPdfDocument: any;
|
||||
page: number;
|
||||
displayPage: number;
|
||||
|
@@ -54,6 +54,7 @@
|
||||
<md-icon>share</md-icon>
|
||||
</button>
|
||||
|
||||
<ng-container *ngIf="allowMoreActions">
|
||||
<button md-icon-button [mdMenuTriggerFor]="mnuMoreActions" mdTooltip="More actions">
|
||||
<md-icon>more_vert</md-icon>
|
||||
</button>
|
||||
@@ -71,6 +72,7 @@
|
||||
<span>Action Three</span>
|
||||
</button>
|
||||
</md-menu>
|
||||
</ng-container>
|
||||
|
||||
<ng-container *ngIf="allowInfoDrawer">
|
||||
<adf-toolbar-divider></adf-toolbar-divider>
|
||||
|
@@ -54,23 +54,26 @@ export class ViewerComponent implements OnDestroy, OnChanges {
|
||||
allowGoBack = true;
|
||||
|
||||
@Input()
|
||||
allowOpenWith = true;
|
||||
allowOpenWith = false;
|
||||
|
||||
@Input()
|
||||
allowDownload = true;
|
||||
|
||||
@Input()
|
||||
allowPrint = true;
|
||||
allowPrint = false;
|
||||
|
||||
@Input()
|
||||
allowShare = true;
|
||||
allowShare = false;
|
||||
|
||||
@Input()
|
||||
allowInfoDrawer = true;
|
||||
allowInfoDrawer = false;
|
||||
|
||||
@Input()
|
||||
showInfoDrawer = false;
|
||||
|
||||
@Input()
|
||||
allowMoreActions = false;
|
||||
|
||||
@Output()
|
||||
goBack = new EventEmitter<BaseEvent<any>>();
|
||||
|
||||
|
Reference in New Issue
Block a user