flymis/WebRoot/dojojs/src/widget/DropdownContainer.js
(开头部分) 2KB这里只显示每个文件的开头 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.DropdownContainer");
dojo.require("dojo.widget.*");
dojo.require("dojo.widget.HtmlWidget");
dojo.require("dojo.widget.PopupContainer");
dojo.require("dojo.event.*");
dojo.require("dojo.html.layout");
dojo.require("dojo.html.display");
dojo.require("dojo.html.iframe");
dojo.require("dojo.html.util");
// summary:
// dojo.widget.DropdownContainer provides an input box and a button for a dropdown.
// In subclass, the dropdown can be specified.
dojo.widget.defineWidget(
"dojo.widget.DropdownContainer",
dojo.widget.HtmlWidget,
{
// String: width of the input box
inputWidth: "7em",
// String: id of this widget
id: "",
// String: id of the input box
inputId: "",
// String: name of the input box
inputName: "",
// dojo.uri.Uri: icon for the dropdown button
iconURL: dojo.uri.dojoUri("src/widget/templates/images/combo_box_arrow.png"),
// dojo.uri.Uri: alt text for the dropdown button icon
iconAlt: "",
inputNode: null,
buttonNode: null,
containerNode: null,
// String: toggle property of the dropdown
containerToggle: "plain",
// Int: toggle duration property of the dropdown
containerToggleDuration: 150,
containerAnimInProgress: false,
templateString: '<span style="white-space:nowrap"><input type="hidden" name="" value="" dojoAttachPoint="valueNode" /><input name="" type="text" value="" style="vertical-align:middle;" dojoAttachPoint="inputNode" autocomplete="off" /> <img src="${this.iconURL}" alt="${this.iconAlt}" dojoAttachEvent="onclick: onIconClick" dojoAttachPoint="buttonNode" style="vertical-align:middle; cursor:pointer; cursor:hand" /></span>',
templateCssPath: "",
fillInTemplate: function(args, frag){
var source = this.getFragNodeRef(frag);
this.popup = dojo.widget.createWidget("PopupContainer", {toggle: this.containerToggle, toggleDuration: this.containerToggleDuration});
this.containerNode = this.popup.domNode;
后面还有 30 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。