Subversion Repositories Applications.papyrus

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
2150 mathias 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");
4
 
5
dojo.require("dijit.layout.ContentPane");
6
dojo.require("dijit._Templated");
7
 
8
dojo.declare("dijit.layout.LinkPane",
9
	[dijit.layout.ContentPane, dijit._Templated],
10
	{
11
	// summary:
12
	//	A ContentPane that loads data remotely
13
	// description:
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.)
17
	// example:
18
	//	<a href="foo.html">my title</a>
19
 
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>',
24
 
25
	postCreate: function(){
26
 
27
		// If user has specified node contents, they become the title
28
		// (the link must be plain text)
29
		if(this.srcNodeRef){
30
			this.title += this.srcNodeRef.innerHTML;
31
		}
32
		this.inherited("postCreate",arguments);
33
	}
34
});
35
 
36
}