Class: FileViewer

FileViewer

The File Viewer control allows users to view files that have been uploaded using either the BPM File Dropzone or BPM File Uploader, it should be used in conjunction with the BPM File List. A FileViewer control provides the following configuration properties in Process Designer:

Appearance

Width: Width in px, %, em For example: 500px, 20%, 40em. If no unit is specified, px is assumed string
Height: Height in px, %, em For example: 500px, 20%, 40em. If no unit is specified, px is assumed string
Controls Placement: Placement of viewer controls within the viewer panel
{None | Top | Bottom}
string

Behavior

Fit Content to Viewer Width: If enabled, file viewer will fit content to viewer width boolean
Fit Content to Viewer Height: If enabled, file viewer will fit content to viewer height boolean

Events

On Load:
Description: Triggers whenever the view is loaded.
Example:
console.log("File viewer loaded")
Articles

new FileViewer()

This constructor is never used explicitly.

Extends

  • com.ibm.bpm.coach.CoachView

Methods

fitContentToHeight()

Sets flag for fit content to height
Type Description
boolean

fitContentToWidth()

Sets flag for fit content to width
Type Description
boolean

getType(){string}

Get descriptive string representing the type of control
Returns:
Type Description
string

setUrl(url)

Sets the Url for the control
Name Type Description
url string the url