6 Replies Latest reply: Jul 8, 2014 6:18 AM by Raju Kannuri RSS

    Build your own tabrow in QlikView (Example in thread)

    Alexander Karlsson

      Build your own Tabrow

      tl;dr Tabrow extension template - get it here http://community.qlik.com/docs/DOC-5257


      With QlikViews 11 we got the possibility to include document extensions to our QlikView documents.

      This allows us to modify how the AJAX-client looks like but also modify behaviour or functionality.


      In this thread I will focus on how we can build our own tabrow in QlikView.

      Included is a package that contains a sample app and a sample extension that can be used as a base to create your own Tabrow by only editing CSS.


      The sample that is attached contains heavily commented code which should get you up to speed if you want to create your own extension from scratch.


      The sample could also be used as a base if you want to style it to your own look and feel.

      The short version behind a tabrow is that QlikView passes an XML structure, that gets converted to an array of objects to your extension.


      We then loop every object, which corresponds to a tab in QlikView, and create basic HTML markup which in turn is styled according to a set of CSS-rules. So you could take the same basic structure and apply your own set of CSS rules to create your own tabrow without writing a single line of code.


      The markup structure that's create looks something like this:

      <div id='Tabrow' class='Tabrow'> --Standard container from QV

           <div class='navbar'> --Our own container/wrapper

                <ul id='root' class='navbar'> --Our tabs go into a unordered list

                     <li class='active' id='Document\SH01'> --A list item that's our tab.

                          <a>Tab Name</a>


                     <li class='' id='Document\SH02'> --A list item that's our tab.

                          <a>A not active Tab Name</a>






      Then we style and position the different objects through our style.css file.
      And the end product looks something like this:


      Feel free to play around with it and if you run into any problems go have a look at CSS Tutorial first and then post your questions here if you couldn't find a answer over at w3school .


      If you create something cool please share it with the community!