4 Replies Latest reply: May 27, 2015 9:14 PM by Bryan Sng RSS

    Qlik Sense template and paint

    Bryan Sng

      Hello guys,

       

      I was trying to use angularjs in qlik sense extension but realise that without a template, angularjs cannot run.

      So I include the template: templateContent but instead, my paint function does not run.

       

      Do you guys have any idea? Below is an extract of the extension:

      Do note that templateContent and the other variables in the extract are properly loaded in the define function.

       

        return {

          type: 'visualization',

       

          definition: properties,

       

          initialProperties: initialproperties,

       

          snapshot: {

            canTakeSnapshot: true

          },

       

          template: templateContent,

       

          paint: function($element, layout) {

            alert('a'); // this is never called but if I remove "template: templateContent", it will

          }

        };