src/ui/document-viewer/document-viewer.component.ts
AfterViewInit
OnInit
OnDestroy
| changeDetection | ChangeDetectionStrategy.OnPush |
| providers |
SmartDocumentViewerDataService
|
| selector | smart-document-viewer |
| styleUrls | ./document-viewer.component.scss |
| templateUrl | ./document-viewer.component.html |
Properties |
|
Methods |
|
Inputs |
constructor(injector: Injector)
|
||||||
|
Parameters :
|
| backendService |
Type : string | undefined
|
Default value : undefined, { alias: 'smart-document-viewer-backend-service' }
|
| baseUrl |
Type : string | undefined
|
Default value : undefined, { alias: 'smart-document-viewer-base-url' }
|
| dataSourceName |
Type : string | undefined
|
Default value : undefined, { alias: 'smart-data-source' }
|
| fileNameField |
Type : string | undefined
|
Default value : undefined, { alias: 'smart-document-viewer-file-name-field' }
|
| sourceType |
Type : DocumentViewerSourceType | undefined
|
Default value : undefined, { alias: 'smart-document-viewer-source-type' }
|
| tools |
Type : SmartDocumentViewerTool[]
|
Default value : [], { alias: 'smart-document-viewer-tools' }
|
| urlFieldName |
Type : string | undefined
|
Default value : undefined, { alias: 'smart-document-viewer-url-field-name' }
|
| urlSubstitute |
Type : string | undefined
|
Default value : undefined, { alias: 'smart-document-viewer-url-substitute' }
|
| ignoreFlexboxLayout |
Type : boolean
|
| smart-help-text |
Type : string | undefined
|
|
Sets the HelpText value for this form child. |
| smart-instance-name |
Type : string
|
|
The instance name of the component |
| smart-object-name |
Type : string
|
|
The object name of the component |
| Public handleLayoutChange | ||||||||
handleLayoutChange(styling: any)
|
||||||||
|
Applies layout styling from the form stretch helper.
Parameters :
Returns :
void
|
| showDocument | ||||||||
showDocument(base64OrUrl: string | null)
|
||||||||
|
Show the document in the viewer.
Parameters :
Returns :
void
|
| Public notifyLoadingFinished | ||||||
notifyLoadingFinished(objectName: string)
|
||||||
|
Notifies the parent Smart Form that this form child has finished loading
Parameters :
Returns :
void
void |
| Public injector |
Type : Injector
|
@if (shouldShowViewer()) {
<kendo-pdfviewer
[data]="documentFile()"
[url]="documentUrl()"
[tools]="pdfViewerTools()"
[style.height.%]="100"
[style.width.%]="100"
>
<kendo-pdfviewer-messages
[downloadTitle]="messageStrings().downloadTitle"
[printTitle]="messageStrings().printTitle"
[zoomInTitle]="messageStrings().zoomInTitle"
[zoomOutTitle]="messageStrings().zoomOutTitle"
[openTitle]="messageStrings().openTitle"
[searchTitle]="messageStrings().searchTitle"
[selectionTitle]="messageStrings().selectionTitle"
></kendo-pdfviewer-messages>
</kendo-pdfviewer>
}
./document-viewer.component.scss