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