PDF Viewer
PDF Viewer allows you to view PDF files.
Example
API Methods
setPdfUrl
Sets the URL of the pdf.
- Method
- Usage
setPdfUrl(url: string): void
// Sets the url
a8forms.PdfViewer("pdfviewerId").setPdfUrl("https://www.wizardingworld.com/")
setSize
Sets the size only using the parameters passed in.
- Method
- Usage
setSize(size: "small" | "medium" | "large"): void
//Sets the size to small
a8forms.PdfViewer("PdfViewerId").setSize("small")
//Sets the size to medium
a8forms.PdfViewer("PdfViewerId").setSize("medium")
//Sets the size to large
a8forms.PdfViewer("PdfViewerId").setSize("large")
setVisibility
Sets if elements of the given category is visible in this view.
- Method
- Usage
setVisibility(visible: boolean): void
// setting the visibility true makes the element to visible
a8forms.PdfViewer("PdfViewerId").setVisibility(true)
// setting the visibility false makes the element to not visible
a8forms.PdfViewer("PdfViewerId").setVisibility(false)
setVisibilityCondition
Sets the hide condition.
- Method
- Usage
setVisibilityCondition(condition: string): void
// Hides the string
a8forms.PdfViewer("pdfviewerId").setVisibilityCondition("1 == 1");