getSnapshot method

STABLE.
This API is reliable and breaking changes are unlikely.

qlik.app.getSnapshot (element, id)

Inserts a Qlik Sense snapshot into a HTML element. The snapshot fills the HTML object so you can size and position the element to determine how large the Qlik Sense object will be.

If you only supply one parameter, you will just get the model without displaying the object.

Version history

Introduced 1.1

Parameters

Name Type Description
element Element | String

Optional.

HTML element or string with HTML element id.

id String Snapshot ID.

Returns

A promise of an object model

Example

app.getSnapshot(document.getElementById("SNAPSHOT"),
	"uPyZavD");

Did this information help you?

Can you tell us why it did not help you and how we can improve it?

Thanks for helping us improve!