Skip to main content Skip to complementary content

promise object

Information noteSTABLE.

This API is reliable and breaking changes are unlikely.

qlik.promise(executor(resolve, reject))

Promise utility that can be used for asynchronous operations. Very useful for the paint method to indicate when the rendering is completed.

Full documentation can be found on

Version history

Version history
Version state Details
Introduced 3.0



Type: Function

The executing function with two parameters:

  • resolve
  • reject


var Promise = qlik.Promise;
  paint:function($element,layout) {
    return new Promise(function(resolve, reject) {
      setTimeout(function() {
        resolve(); // Extension painted successfully
      }, 1000);

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!