1 if(!dojo._hasResource["dijit.layout.LinkPane"]){ //_hasResource checks added by build. Do not use _hasResource directly in your code.
2 dojo._hasResource["dijit.layout.LinkPane"] = true;
3 dojo.provide("dijit.layout.LinkPane");
5 dojo.require("dijit.layout.ContentPane");
6 dojo.require("dijit._Templated");
8 dojo.declare("dijit.layout.LinkPane",
9 [dijit.layout.ContentPane, dijit._Templated],
12 // A ContentPane that loads data remotely
14 // LinkPane is just a ContentPane that loads data remotely (via the href attribute),
15 // and has markup similar to an anchor. The anchor's body (the words between `<a>` and `</a>`)
16 // become the title of the widget (used for TabContainer, AccordionContainer, etc.)
18 // <a href="foo.html">my title</a>
20 // I'm using a template because the user may specify the input as
21 // <a href="foo.html">title</a>, in which case we need to get rid of the
22 // <a> because we don't want a link.
23 templateString: '<div class="dijitLinkPane"></div>',
25 postCreate: function(){
27 // If user has specified node contents, they become the title
28 // (the link must be plain text)
30 this.title += this.srcNodeRef.innerHTML;
32 this.inherited("postCreate",arguments);