remotetabcontroller.js

来自「js基本操作」· JavaScript 代码 · 共 51 行

JS
51
字号
/*	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 tabsdojo.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);		}	});

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?