2 Replies Latest reply on Oct 24, 2014 10:38 AM by Stephen Hellyar

    Javascript API Tableau 8: Does hideToolbar work?

    Steve Donovan

        var options = {

          width: placeholderDiv.offsetWidth,

          height: placeholderDiv.offsetHeight,

          hideTabs: false,

          hideToolbar: true,

          toolbarPosition: tableauSoftware.ToolbarPosition.TOP,

          onFirstInteractive: function () {

            workbook = viz.getWorkbook();

            activeSheet = workbook.getActiveSheet();



      When I show the toolbar, it is on the top of the VIZ.   When I turn it off, it is on the bottom of the VIZ.   I can't seem to actually shut it off.   Wondering if there is a carryover from the EMBED code to position it as off or some such toggle.


      Ideally, I want to use the new API to facilitate the same layout as the old embed code.   But the toolbars are on, the login navigation is on and a "more from this author" is on.   I want it all off.


      I do want the ability to get the tab list and move from tab to tab via Javascript.   Something I do not think the embed library allowed.


      Any help on tab navigation via embed or cleaner layout via Javascript would be appreciated.

        • 1. Re: Javascript API Tableau 8: Does hideToolbar work?
          Russell Christopher

          Works fine for me:


          <script src="http://code.jquery.com/jquery-1.10.2.js"></script>
          <script type="text/javascript" src="http://tableau.russellchristopher.org/javascripts/api/tableau_v8.debug.js"></script>   
              <div id="showstuff"></div>
                  mainVizDiv = $('#showstuff');
                  var mainVizOptions = { hideTabs: true, hideToolbar: true };
                  // Create viz
                  var mainViz = new tableauSoftware.Viz(mainVizDiv[0], 'http://public.tableausoftware.com/views/taleof100_0/Dashboardat570', mainVizOptions);


          Toolbar is off.

          • 2. Re: Javascript API Tableau 8: Does hideToolbar work?
            Stephen Hellyar

            Did you get it to work?  I have the same problem. 


            I got it to work for one dashboard.   I used the same exact language for a second dashboard and it did not work.  The only thing I changed was the vizURL and height to match the second dashboard.  Ugh