没有合适的资源?快使用搜索试试~ 我知道了~
Ext_MessageBox
2星 需积分: 10 9 下载量 170 浏览量
2011-09-28
17:52:47
上传
评论
收藏 4KB TXT 举报
温馨提示
试读
7页
ext中的各种消息框,提示框,输入框,确认框,自定义消息框,进度条,以及滑动提示。
资源推荐
资源详情
资源评论
提示框:
Ext.MessageBox.alert("hello","ni hao a !");
窗口:
var win = new Ext.Window({
title:"hello",
width:300,
height:200,
html:'<h1>hello everyone</h1>'
});
win.show();
输入框:
Ext.MessageBox.prompt("prompt",
"please input you name:",
function(but, txt){
Ext.MessageBox.alert("result","you click button: "+but+"<br> the name you input is:"+txt);
},
this,
30);
确认框:
Ext.onReady(function(){
Ext.MessageBox.confirm("sure","please click button as you select:",function(but){
Ext.MessageBox.alert("message","you select:"+but);
});
自定义信息框:
var config = {
title:"dialogbox",
msg:"this is a diy dialog box",
width:300,
multiline:true,
Ext.MessageBox.alert("hello","ni hao a !");
窗口:
var win = new Ext.Window({
title:"hello",
width:300,
height:200,
html:'<h1>hello everyone</h1>'
});
win.show();
输入框:
Ext.MessageBox.prompt("prompt",
"please input you name:",
function(but, txt){
Ext.MessageBox.alert("result","you click button: "+but+"<br> the name you input is:"+txt);
},
this,
30);
确认框:
Ext.onReady(function(){
Ext.MessageBox.confirm("sure","please click button as you select:",function(but){
Ext.MessageBox.alert("message","you select:"+but);
});
自定义信息框:
var config = {
title:"dialogbox",
msg:"this is a diy dialog box",
width:300,
multiline:true,
closable:false,
buttons:Ext.MessageBox.YESNOCANCEL,
icon:Ext.MessageBox.QUESTION,
fn:function(but,txt){
Ext.MessageBox.alert("msg","you click button : "+but+"<br> and the msg you input is: "+txt);
}
}
Ext.MessageBox.show(config);
进度条:
var config = {
title:"please witing......",
msg:"now is loding",
width:300,
progressText:"initing",
closable:false,
progress:true,
}
Ext.MessageBox.show(config);
var f = function(v){
return function(){
if(v==12) {
Ext.MessageBox.hide();
Ext.MessageBox.alert("done", "all of project is downloaded");
} else {
var i = v/11;
Ext.MessageBox.updateProgress(i,Math.round(100*i)+"% is done");
}
};
buttons:Ext.MessageBox.YESNOCANCEL,
icon:Ext.MessageBox.QUESTION,
fn:function(but,txt){
Ext.MessageBox.alert("msg","you click button : "+but+"<br> and the msg you input is: "+txt);
}
}
Ext.MessageBox.show(config);
进度条:
var config = {
title:"please witing......",
msg:"now is loding",
width:300,
progressText:"initing",
closable:false,
progress:true,
}
Ext.MessageBox.show(config);
var f = function(v){
return function(){
if(v==12) {
Ext.MessageBox.hide();
Ext.MessageBox.alert("done", "all of project is downloaded");
} else {
var i = v/11;
Ext.MessageBox.updateProgress(i,Math.round(100*i)+"% is done");
}
};
剩余6页未读,继续阅读
资源评论
- 悼风2019-07-19只是Ext_MessageBox的使用例子,TXT文件,不是源码
- 此用户已被注册2013-10-28还行 好久没用ext了
kai347974150
- 粉丝: 0
- 资源: 2
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
- 基于Android的学生信息管理2.rar
- 3e9ef566-ba13-47b0-a252-77aa9e4b040f8412130.apk
- 毕业设计基于SSM的房屋租赁系统源【源码+lw+部署+讲解】
- 基于Android男装出口管理系统的app.rar
- 工资表生成工资条Excel模版
- 位运算、状态压缩、枚举子集汇总.html
- C++毕业设计快递分拣机器人系统源码+论文文件+资料.zip
- 锐龙处理器 体质分析工具,体质越好越稳定,越容易超频 tool1007/Win V/F
- IOS Swift3 四种单例模式详解及实例《PPT文档》
- Swin-Unet网络预训练模型,swin-tiny-patch-window7-224.pth
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功