jquery.bootstrap.teninedialog.js使用说明

  1. 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的数组下标
            }
                

    站长统计 彼岸之远

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值