Qlik Community

New to Qlik Sense

Discussion board where members can get started with Qlik Sense.

Announcements
Qlik® Product Spotlight: Discover what’s possible. Get more from our products.
See for yourself. Register today.
Not applicable

How to show an image in QLIK extension

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.