1 Reply Latest reply: Jul 15, 2014 10:57 AM by Ralf Becher RSS

    How to dock HTML table inside extension object(created by .qar)

    a k

      I have html table inside extension object which is created by .qar. Size of html table may vary due to pagination. So I want to dock html table into extension object and provide scroll bar just like Table Box object of qlikview. I tried with css, but not able to do. How to do that?

        • Re: How to dock HTML table inside extension object(created by .qar)
          Ralf Becher

          Hi a k,

           

          I came across this today. This can be done very easily by setting the CSS attribute overflow="auto" at the surrounding div:

           

          // Create new div element inside existing div (QvContent)

          var myDiv = $('<div />').css({

                  height: this.GetHeight(),

                  width: this.GetWidth(),

                  overflow: "auto"

            }).appendTo($(this.Element).empty());

           

          // Then, place the table inside of myDiv

          myDiv.append('<table />');

           

          - Ralf