MINIUI基本學習筆記

彈出Dialoghtml

  mini.open({
                url: "/SysUsernew/Edit?id=" + row.ID + "&Ieguid=" + GetGuid(),
                title: "編輯帳戶", width: 900, height: 600,
                showMaxButton: true,
                ondestroy: function (action) {
                    grid.reload();
                }
            });

獲取選中行node

    var row = grid.getSelected();

獲取樹api

 //獲取樹
        var node = tree.getSelectedNode();

dialog完整格式ui

 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官網this

http://www.miniui.com/docs/api/index.html url

相關文章
相關標籤/搜索