mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-14 17:58:59 +00:00
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@5282 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
51 lines
1.5 KiB
JavaScript
51 lines
1.5 KiB
JavaScript
/*
|
|
Copyright (c) 2004-2006, The Dojo Foundation
|
|
All Rights Reserved.
|
|
|
|
Licensed under the Academic Free License version 2.1 or above OR the
|
|
modified BSD license. For more information on Dojo licensing, see:
|
|
|
|
http://dojotoolkit.org/community/licensing.shtml
|
|
*/
|
|
|
|
dojo.provide("dojo.widget.RemoteTabController");
|
|
|
|
//Summary
|
|
//Remote Tab Controller widget. Can be located independently of a tab
|
|
//container and control the selection of its tabs
|
|
dojo.require("dojo.widget.*");
|
|
dojo.require("dojo.widget.TabContainer");
|
|
dojo.require("dojo.event.*");
|
|
|
|
dojo.deprecated("dojo.widget.RemoteTabController is slated for removal in 0.5; use PageController or TabController instead.", "0.5");
|
|
|
|
dojo.widget.defineWidget(
|
|
"dojo.widget.RemoteTabController",
|
|
dojo.widget.TabController,
|
|
{
|
|
templateCssPath: dojo.uri.dojoUri("src/widget/templates/RemoteTabControl.css"),
|
|
templateString: '<div dojoAttachPoint="domNode" wairole="tablist"></div>',
|
|
|
|
"class": "dojoRemoteTabController",
|
|
|
|
// String
|
|
// ID of page container that I connect to
|
|
tabContainer: "",
|
|
|
|
postMixInProperties: function(){
|
|
this.containerId = this.tabContainer;
|
|
dojo.widget.RemoteTabController.superclass.postMixInProperties.apply(this, arguments);
|
|
},
|
|
|
|
fillInTemplate: function() {
|
|
dojo.html.addClass(this.domNode, this["class"]); // "class" is a reserved word in JS
|
|
|
|
if (this.tabContainer) {
|
|
dojo.addOnLoad(dojo.lang.hitch(this, "setupTabs"));
|
|
}
|
|
|
|
dojo.widget.RemoteTabController.superclass.fillInTemplate.apply(this, arguments);
|
|
}
|
|
}
|
|
);
|