<?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"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd"
	xmlns:media="http://search.yahoo.com/mrss/"
	>
<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>
	<lastBuildDate>Wed, 10 Mar 2010 18:40:27 -0500</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: dante</title>
		<link>http://dojocampus.org/content/2008/06/06/hacking-tabcontainer-settitle-extension/comment-page-1/#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 &#039;_setupChild&#039; instead of &#039;addChild&#039;</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-page-1/#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 &quot;mucking dijit&quot; Cookie, though slightly more difficult. (You can&#039;t over-ride and use this.inherited(arguments) in a dojo.extend, iirc) Maybe something like:

&lt;pre lang=&quot;javascript&quot;&gt;
dojo.connect(dijit.layout.TabContainer.prototype,&quot;addChild&quot;,function(child){   
     if(!child[&quot;setTitle&quot;]){
         // 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" 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><span style="color: #339933;">;</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-page-1/#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&#039;t want to make my own class, but stay with dijit.layout.TabContainer. 


&gt;&gt; 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>

<!-- Dynamic Page Served (once) in 0.388 seconds -->
