📄 progress-bar.aspx
字号:
<%@ Page Language="C#" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head id="Head1" runat="server">
<title>ProgressBar Example</title>
<link rel="stylesheet" type="text/css" href="../../resources/css/ext-all.css" />
<link rel="stylesheet" type="text/css" href="../examples.css" />
<script type="text/javascript" src="../../adapter/ext/ext-base.js" ></script>
<script type="text/javascript" src="../../ext-all-debug.js" ></script>
<link rel="stylesheet" type="text/css" href="progress-bar.css" />
</head>
<body>
<form id="form1" runat="server"></form>
<ssfx:Scriptlet runat="server" ID="scriptlet" EnableDebugging="True" PrecompiledScriptlet="SampleScripts.simple_widgets.ProgressBarScript">
<References>
<ssfx:AssemblyReference Name="sscorlib"></ssfx:AssemblyReference>
<ssfx:AssemblyReference Name="ssfx.Core"></ssfx:AssemblyReference>
<ssfx:AssemblyReference Name="ExtSharp"></ssfx:AssemblyReference>
<ssfx:AssemblyReference Name="SampleScripts"></ssfx:AssemblyReference>
</References>
</ssfx:Scriptlet>
<h1>Progress Bar</h1>
<p>The example shows how to use the ProgressBar class. The js is not minified so it is readable.
See <a href="progress-bar.js">progress-bar.js</a>.</p>
<p>
<b>Basic Progress Bar</b><br />
Deferred rendering, dynamic show/hide and built-in progress text:
<button id="btn1">Show</button><br />
<div class="status" id="p1text">Nothing to see here.</div>
<div id="p1" style="width:300px;"></div>
</p>
<p>
<b>Additional Options</b><br />
Rendered on page load, left-aligned text and % width:
<button id="btn2">Show</button><br />
<div id="p2" style="width:50%;"></div>
</p>
<p>
<b>Waiting Bar</b><br />
Wait for a long operation to complete (example will stop after 5 secs):
<button id="btn3">Show</button><br />
<div id="p3"></div>
<span class="status" id="p3text">Ready</span>
</p>
<p>
<b>Custom Styles</b><br />
Rendered like Windows XP with custom progress text element:
<button id="btn4">Show</button><br />
<div id="p4" style="width:300px;"></div>
<div class="status"><b>Status:</b> <span id="p4text"></span></div>
</p>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -