flymis/WebRoot/dojojs/src/widget/InlineEditBox.js
(开头部分) 5KB这里只显示每个文件的开头 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.InlineEditBox");
dojo.require("dojo.widget.*");
dojo.require("dojo.event.*");
dojo.require("dojo.lfx.*");
dojo.require("dojo.gfx.color");
dojo.require("dojo.string");
dojo.require("dojo.html.*");
dojo.require("dojo.html.layout");
dojo.widget.defineWidget(
"dojo.widget.InlineEditBox",
dojo.widget.HtmlWidget,
function(){
// mutable objects need to be in constructor to give each instance its own copy
this.history = [];
},
{
templatePath: dojo.uri.dojoUri("src/widget/templates/InlineEditBox.html"),
templateCssPath: dojo.uri.dojoUri("src/widget/templates/InlineEditBox.css"),
form: null,
editBox: null,
edit: null,
text: null,
textarea: null,
submitButton: null,
cancelButton: null,
mode: "text",
name: "",
minWidth: 100, //px. minimum width of edit box
minHeight: 200, //px. minimum width of edit box, if it's a TA
editing: false,
textValue: "",
defaultText: "",
doFade: false,
onSave: function(newValue, oldValue, name){},
onUndo: function(value){},
postCreate: function(args, frag){
// put original node back in the document, and attach handlers
// which hide it and display the editor
this.editable = this.getFragNodeRef(frag);
dojo.html.insertAfter(this.editable, this.form);
dojo.event.connect(this.editable, "onmouseover", this, "onMouseOver");
dojo.event.connect(this.editable, "onmouseout", this, "onMouseOut");
dojo.event.connect(this.editable, "onclick", this, "beginEdit");
后面还有 152 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。