https://github.com/meersoftware/dialogboxjs
Dialog Box plugin for jQuery
https://github.com/meersoftware/dialogboxjs
Last synced: about 2 months ago
JSON representation
Dialog Box plugin for jQuery
- Host: GitHub
- URL: https://github.com/meersoftware/dialogboxjs
- Owner: MeerSoftware
- Created: 2021-12-24T12:34:30.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2021-12-26T01:49:50.000Z (over 4 years ago)
- Last Synced: 2025-01-10T15:17:22.109Z (over 1 year ago)
- Language: JavaScript
- Homepage:
- Size: 10.7 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
THIS API NOT WRITTEN BY US!
Dialogbox API
$('#default').on('click',function(){
var data = '<div style="padding:20px;">这是内容<br />这是内容<br />这是内容</div>';
$.dialogbox({
type:'default',
title:'标题',
content:data,
closeCallback:function(){
$.dialogbox.prompt({
content:'关闭了对话框',
time:2000
});
}
});
});
alert
$('#alert').on('click',function(){
$.dialogbox({
type:'msg',
title:'提示',
icon:1,
content:'图片已上传成功!',
btn:['确定'],
call:[
function(){
$.dialogbox.close();
}
]
});
});
confirm
$('#confirm').on('click',function(){
$.dialogbox({
type:'msg',
title:'提示',
content:'您确定要删除图片吗?',
closeBtn:true,
btn:['确定','取消'],
call:[
function(){
$.dialogbox.close();
},
function(){
$.dialogbox.close();
}
]
});
});
iframe
$('#iframe').on('click',function(){
$.dialogbox({
type:'iframe',
title:'百度',
content:'下面是百度首页',
url:'http://www.baidu.com',
width:900,
height:650
});
});
prompt
$('#prompt').on('click',function(){
$.dialogbox.prompt({
content:'提交成功',
time:2000
});
});