MINIUI基本学习笔记
弹出Dialog
mini.open({ url: "/SysUsernew/Edit?id=" + row.ID + "&Ieguid=" + GetGuid(), title: "编辑账户", width: 900, height: 600, showMaxButton: true, ondestroy: function (action) { grid.reload(); } });
获取选中行
var row = grid.getSelected();
获取树
//获取树 var node = tree.getSelectedNode();
dialog完整格式
mini.open({ url: "“”, title: "新增用户", width: 800, height: 500, onload: function () { var iframe = this.getIFrameEl(); //声明数据(树形所属部门) var data = node; //绑定数据 iframe.contentWindow.SetData(data); }, ondestroy: function (action) { grid.reload(); } });
详细参阅API官网
http://www.miniui.com/docs/api/index.html