<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	>
<channel>
	<title>Comments on: Hacking TabContainer: setTitle extension</title>
	<atom:link href="http://dojocampus.org/content/2008/06/06/hacking-tabcontainer-settitle-extension/feed/" rel="self" type="application/rss+xml" />
	<link>http://dojocampus.org/content/2008/06/06/hacking-tabcontainer-settitle-extension/</link>
	<description>The definitive resource for all things Dojo: past, present, future.</description>
	<pubDate>Fri, 21 Nov 2008 02:26:39 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.5.1</generator>
		<item>
		<title>By: dante</title>
		<link>http://dojocampus.org/content/2008/06/06/hacking-tabcontainer-settitle-extension/#comment-261</link>
		<dc:creator>dante</dc:creator>
		<pubDate>Thu, 11 Sep 2008 19:55:54 +0000</pubDate>
		<guid isPermaLink="false">http://dojocampus.org/content/?p=131#comment-261</guid>
		<description>note: in order to get tabs in markup to have this extension, you need to override '_setupChild' instead of 'addChild'</description>
		<content:encoded><![CDATA[<p>note: in order to get tabs in markup to have this extension, you need to override &#8216;_setupChild&#8217; instead of &#8216;addChild&#8217;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: dante</title>
		<link>http://dojocampus.org/content/2008/06/06/hacking-tabcontainer-settitle-extension/#comment-203</link>
		<dc:creator>dante</dc:creator>
		<pubDate>Fri, 06 Jun 2008 10:19:51 +0000</pubDate>
		<guid isPermaLink="false">http://dojocampus.org/content/?p=131#comment-203</guid>
		<description>yes.  it would be based on the linked "mucking dijit" Cookie, though slightly more difficult. (You can't over-ride and use this.inherited(arguments) in a dojo.extend, iirc) Maybe something like:

&lt;pre lang="javascript"&gt;
dojo.connect(dijit.layout.TabContainer.prototype,"addChild",function(child){   
     if(!child["setTitle"]){
         // doit ...
     }
});
&lt;/pre&gt;</description>
		<content:encoded><![CDATA[<p>yes.  it would be based on the linked &#8220;mucking dijit&#8221; Cookie, though slightly more difficult. (You can&#8217;t over-ride and use this.inherited(arguments) in a dojo.extend, iirc) Maybe something like:</p>

<div class="wp_syntax"><div class="code"><pre class="javascript javascript" style="font-family:monospace;">dojo.<span style="color: #660066;">connect</span><span style="color: #009900;">&#40;</span>dijit.<span style="color: #660066;">layout</span>.<span style="color: #660066;">TabContainer</span>.<span style="color: #660066;">prototype</span><span style="color: #339933;">,</span><span style="color: #3366CC;">&quot;addChild&quot;</span><span style="color: #339933;">,</span><span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span>child<span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>   
     <span style="color: #000066; font-weight: bold;">if</span><span style="color: #009900;">&#40;</span><span style="color: #339933;">!</span>child<span style="color: #009900;">&#91;</span><span style="color: #3366CC;">&quot;setTitle&quot;</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
         <span style="color: #006600; font-style: italic;">// doit ...</span>
     <span style="color: #009900;">&#125;</span>
<span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span>;</pre></div></div>

]]></content:encoded>
	</item>
	<item>
		<title>By: psypath</title>
		<link>http://dojocampus.org/content/2008/06/06/hacking-tabcontainer-settitle-extension/#comment-202</link>
		<dc:creator>psypath</dc:creator>
		<pubDate>Fri, 06 Jun 2008 07:15:56 +0000</pubDate>
		<guid isPermaLink="false">http://dojocampus.org/content/?p=131#comment-202</guid>
		<description>cool, was looking around for that already. Thanks phiggins.

I don't want to make my own class, but stay with dijit.layout.TabContainer. 


&#62;&#62; The same principals apply: we can mix setTitle into an instance, extend TabContainer,

Means, I could also do this with a dojo.extend(...), right?</description>
		<content:encoded><![CDATA[<p>cool, was looking around for that already. Thanks phiggins.</p>
<p>I don&#8217;t want to make my own class, but stay with dijit.layout.TabContainer. </p>
<p>&gt;&gt; The same principals apply: we can mix setTitle into an instance, extend TabContainer,</p>
<p>Means, I could also do this with a dojo.extend(&#8230;), right?</p>
]]></content:encoded>
	</item>
</channel>
</rss>
