Home Reference Source
import PDF from 'formiojs/src/PDF.js'
public class | source

PDF

Extends:

src/Webform.js~Webform → PDF

Constructor Summary

Public Constructor
public

Member Summary

Public Members
public

components: *[]

public
public
public
public
public
public

Method Summary

Public Methods
public

attach(element: *): *

public

clear()

public
public

getSrc(): *

public

Get the submission from the iframe.

public

init()

public
public

postMessage(message: *)

public

rebuild(): *

public

redraw(): *

public

render(): *

public

setForm(form: *): *

public

setSubmission(submission: *): *

public

setValue(submission: *, flags: *): *

Set's the value of this form component.

public

showErrors(error: *, triggerEvent: *)

public

submitForm(options: *): *

Ensure we have the submission from the iframe before we submit the form.

Public Constructors

public constructor() source

Public Members

public components: *[] source

public downloadButton: * source

public iframeElement: * source

public iframeReady: * source

public iframeReadyReject: * source

public iframeReadyResolve: * source

public submitButton: * source

Public Methods

public attach(element: *): * source

Params:

NameTypeAttributeDescription
element *

Return:

*

public clear() source

public focusOnComponent(key: *) source

Params:

NameTypeAttributeDescription
key *

public getSrc(): * source

Return:

*

public getSubmission(): Promise<any> source

Get the submission from the iframe.

Return:

Promise<any>

public init() source

public isSubmitButtonHidden(): * source

Return:

*

public postMessage(message: *) source

Params:

NameTypeAttributeDescription
message *

public rebuild(): * source

Return:

*

public redraw(): * source

Return:

*

public render(): * source

Return:

*

public setForm(form: *): * source

Params:

NameTypeAttributeDescription
form *

Return:

*

public setSubmission(submission: *): * source

Params:

NameTypeAttributeDescription
submission *

Return:

*

public setValue(submission: *, flags: *): * source

Set's the value of this form component.

Params:

NameTypeAttributeDescription
submission *
flags *

Return:

*

public showErrors(error: *, triggerEvent: *) source

Params:

NameTypeAttributeDescription
error *
triggerEvent *

public submitForm(options: *): * source

Ensure we have the submission from the iframe before we submit the form.

Params:

NameTypeAttributeDescription
options *

Return:

*