jquery.bootstrap.teninedialog.js使用说明
来源:互联网 发布:js import from 用法 编辑:程序博客网 时间:2024/05/20 16:43
jquery.bootstrap.teninedialog.js使用说明
不支持调用远程文件
GitHub 下载插件 压缩版
引入jquery、bootstrap和jquery.bootstrap.teninedialog.js插件文件
完整例子代码:
$.teninedialog({ title:'系统提示', content:'确认删除本条记录?', showCloseButton:true, otherButtons:["确定","取消"], otherButtonStyles:['btn-primary','btn-primary'], bootstrapModalOption:{keyboard: true}, dialogShow:function(){ alert('即将显示对话框'); }, dialogShown:function(){ alert('显示对话框'); }, dialogHide:function(){ alert('即将关闭对话框'); }, dialogHidden:function(){ alert('关闭对话框'); }, clickButton:function(sender,modal,index){ alert('选中第'+index+'个按钮:'+sender.html()); $(this).closeDialog(modal); } });
运行例子
最简单的调用
$.teninedialog({ title:'系统提示', content:'确认删除本条记录?' });
运行例子
参数配置
//调用方式 $.teninedialog(options); /**********************************/ //options 配置 var defaults = { title:'标题', content:'内容', showCloseButton:true,//显示关闭按钮 otherButtons:[],//其他按钮文本,样式默认,["确定","取消"] otherButtonStyles:[],//其他按钮的样式,['btn-primary','btn-primary'],bootstrap按钮样式 bootstrapModalOption:{},//默认的bootstrap模态对话框参数 dialogShow:function(){},//对话框即将显示事件 dialogShown:function(){},//对话框已经显示事件 dialogHide:function(){},//对话框即将关闭 dialogHidden:function(){},//对话框已经关闭事件 clickButton:function(sender,modal,index){}//选中按钮的序号,排除关闭按钮。sender:按钮jquery对象,model:对话框jquery对象,index:按钮的顺序,otherButtons的数组下标 }
站长统计 彼岸之远
- jquery.bootstrap.teninedialog.js使用说明
- jquery.validation.js 使用说明
- Jquery.cookie.js使用说明
- bootstrap使用说明
- Js+Jquery+bootstrap问题小结
- jQuery验证控件jquery.validate.js使用说明
- jQuery验证控件jquery.validate.js使用说明
- jQuery验证控件jquery.validate.js使用说明
- jQuery验证控件jquery.validate.js使用说明
- jQuery验证控件jquery.validate.js使用说明
- jQuery验证控件jquery.validate.js使用说明
- Jquery.from.js表单提交插件使用说明
- Jquery.from.js表单提交插件使用说明
- Validform.js jQuery验证插件 使用说明
- jquery验证控件validate.js使用说明
- jquery.validate.js使用说明+中文API
- jquery.validate.js使用说明+中文API
- 简单的 Bootstrap Jquery表单验证.js
- 使用CALayer实现图像镜面效果
- LaTeX数学公式
- const成员函数
- 驱动加载顺序
- JBoss 系列四十二:jBPM5示例之 Signal Event
- jquery.bootstrap.teninedialog.js使用说明
- Mysql字符集设置
- struts2上传文件进度条
- table
- android基础---RelativeLayout的一些主要属性
- java工具类之按对象中某属性排序
- sping定时任务
- [Windows驱动开发](三)基础知识——驱动例程
- IOS使用Reachability实时检测网络连接状况