Skip to main content Skip to complementary content

getSnapshot method

Information noteSTABLE.

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

Version history
Version state Details
Introduced 1.1

Parameters

element

Type: Element | String

Optional.

HTML element or string with HTML element ID.

id

Type: String

Snapshot ID.

Returns

A promise of an object model

Tip noteFor more information regarding a promise, see The Promise API.

Example

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

Did this page help you?

If you find any issues with this page or its content – a typo, a missing step, or a technical error – let us know how we can improve!