0 Replies Latest reply: Feb 21, 2017 9:29 AM by T N RSS

    How to show an image in QLIK extension

    T N

      Hello Support,

       

           I have created a Qlik sense extension. In my extension, I have a folder images/.
          The output of my extension is html element constructed in the paint method.
          I want to be able to display images inside my html element that are coming from images/ folder.

          Example: My extension name is DisplayOrderSection and inside DisplayOrderSection, i have images folder that has images:
          DisplayOrderSection/images/order1.jpg


          In my html, I have an html image tag,

                               var imagePath = "Extensions/DisplayOrderSection /images/";

                               var order1Image = '<img src=' + imagePath + 'order1.jpg>';

       

                               $element.append(order1Image);

                               return qlik.Promise.resolve();

       

       

      the image is not displayed in item 2.

       

      Please let me know.

       

      Thank you.