File

src/ui/document-viewer/document-viewer.component.ts

Extends

AbstractFormChild

Implements

AfterViewInit OnInit OnDestroy

Metadata

Index

Properties
Methods
Inputs

Constructor

constructor(injector: Injector)
Parameters :
Name Type Optional
injector Injector No

Inputs

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

Methods

Public handleLayoutChange
handleLayoutChange(styling: any)

Applies layout styling from the form stretch helper.

Parameters :
Name Type Optional Description
styling any No
  • Style rules to apply to the host element.
Returns : void
showDocument
showDocument(base64OrUrl: string | null)

Show the document in the viewer.

Parameters :
Name Type Optional Description
base64OrUrl string | null No
  • The base64 or URL of the document to show, or null to hide the document.
Returns : void
Public notifyLoadingFinished
notifyLoadingFinished(objectName: string)

Notifies the parent Smart Form that this form child has finished loading

Parameters :
Name Type Optional
objectName string No
Returns : void

void

Properties

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

Legend
Html element
Component
Html element with directive

results matching ""

    No results matching ""