artdialog自定义多个按钮


在实际运用到的过程中artdialog弹出框下面的按钮不止一个

 可以自己定义多个按钮

function view_show(cust_id){
$.dialog({
        id: 'view_cust',
        width: '737px',
        title: '客户信息查看',
        lock: true,
        button:[
                {name:'上一条',
                    callback:function(){
                        cust_id = c.getPrevCustomer(cust_id);
                        if(!cust_id){
                            return false;
                        }
                        this.content('<iframe id="customer_view" src="http://'+crm_host+'/?controller=view&action=custinfo&arg='+arg+'&cust_id='+cust_id+'" frameborder="0" width="735" height="426"></iframe>');
                        return false;
                        }
                },
                {name:"下一条",
                     callback:function(){
                        cust_id =  c.getNextCustomer(cust_id);
                        if(!cust_id){
                            return false;
                        }
                        this.content('<iframe id="customer_view" src="http://'+crm_host+'/?controller=view&action=custinfo&arg='+arg+'&cust_id='+cust_id+'" frameborder="0" width="735" height="426"></iframe>');
                        return false;
                    }
                }],
        content: '<iframe id="customer_view" src="http://'+crm_host+'/?controller=view&action=custinfo&arg='+arg+'&cust_id='+cust_id+'" frameborder="0" width="735" height="426"></iframe>'    
    });
}

 

具体的格式:

        button:[ {

     name:'名字',
                    callback:function(){}

          },

         {name:'名字',
                    callback:function(){}         

         } ]


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM