TabContainer with Flexible Height

725
2
Jump to solution
07-24-2014 10:24 AM
BetsySchenck-Gardner
Occasional Contributor

I am trying to create a TabContainer with flexible height. The content for the tabs is dynamic so I have been able to programmatically generate the tabcontainer using with the following code:

     var tc = new dijit.layout.TabContainer({
       style: "width:100%; color:#000000; background-image:none; background-color:transparent;"
       }, dojo.create("div"));

I want to be able to add in the data-dojo-props doLayout=false but I can't seem to figure out within the above call where to place it. Any help would be appreciated.

0 Kudos
1 Solution

Accepted Solutions
KenBuja
MVP Esteemed Contributor

You should be able to do it adding it into the constructor

var tabContainer = new dijit.layout.TabContainer({

  id: "tabContainer",

  name: "tabContainer",

  doLayout: "false"

}, div);

View solution in original post

0 Kudos
2 Replies
KenBuja
MVP Esteemed Contributor

You should be able to do it adding it into the constructor

var tabContainer = new dijit.layout.TabContainer({

  id: "tabContainer",

  name: "tabContainer",

  doLayout: "false"

}, div);

0 Kudos
BetsySchenck-Gardner
Occasional Contributor

Thanks Ken. Got it to work with your suggestion.

0 Kudos