flymis/WebRoot/dojojs/src/widget/PopupContainer.js

(开头部分) 13KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。

/*
	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.PopupContainer");

dojo.require("dojo.html.style");
dojo.require("dojo.html.layout");
dojo.require("dojo.html.selection");
dojo.require("dojo.html.iframe");
dojo.require("dojo.event.*");
dojo.require("dojo.widget.*");
dojo.require("dojo.widget.HtmlWidget");

// summary:
//		PopupContainerBase is the mixin class which provide popup behaviors:
//		it can open in a given position x,y or around a given node.
//		In addition, it handles animation and IE bleed through workaround.
// description:
//		This class can not be used standalone: it should be mixed-in to a
//		dojo.widget.HtmlWidget. Use PopupContainer instead if you want a
//		a standalone popup widget
dojo.declare(
	"dojo.widget.PopupContainerBase",
	null,
	function(){
		this.queueOnAnimationFinish = [];
	},
{
	isContainer: true,
	templateString: '<div dojoAttachPoint="containerNode" style="display:none;position:absolute;" class="dojoPopupContainer" ></div>',

	// Boolean: whether this popup is shown
	isShowingNow: false,

	// Widget: the shown sub popup if any
	currentSubpopup: null,

	// Int: the minimal popup zIndex
	beginZIndex: 1000,

	// Widget: parent popup widget
	parentPopup: null,
	// Widget: parent Widget
	parent: null,
	// Int: level of sub popup
	popupIndex: 0,

	// dojo.html.boxSizing: which bounding box to use for open aroundNode. By default use BORDER box of the aroundNode
	aroundBox: dojo.html.boxSizing.BORDER_BOX,

	// Object: in which window, the open() is triggered
	openedForWindow: null,

后面还有 392 行代码,购买后查看完整代码

24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明

AI 解读 AI

登录后可用,每次 10 算力,解读结果公开显示在下面。

还没有人解读过这个文件。