Skip to main content Skip to complementary content

getSnapshot method

app.getSnapshot (elem, id)

Method used to insert 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.

Since:
  • 1.1

Parameters

Name Type Description
elem Element

Optional.

HTML element or string with HTML element id.

id String Snapshot ID.

Returns

A promise of an object model

Tip noteFor more information regarding a promise, see http://docs.angularjs.org/api/ng.$q.

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!