jQuery MiniUI 开发教程 表单控件 弹出:选择表格(五)

来源:岁月联盟 编辑:exp 时间:2012-10-11

mini.open

mini.open({
    url: bootPATH + "../demo/CommonLibs/SelectGridWindow.html",          
    title: "选择列表",
    width: 650,
    height: 380,
    ondestroy: function (action) {                 
        if (action == "ok") {
            var iframe = this.getIFrameEl();                       
            var data = iframe.contentWindow.GetData();
            data = mini.clone(data);    //必须

            btnEdit.setValue(data.id);
            btnEdit.setText(data.name);
        }
    }
});