[學習筆記]-ligerui 工具條,樹結構,右鍵菜單,彈框,學習筆記-ligerui

來源:互聯網
上載者:User

[學習筆記]-ligerui 工具條,樹結構,右鍵菜單,彈框,學習筆記-ligerui

基本

 

 

 

 

解析1,工具列

 

html

<div id="toptoolbar"></div>

 

JS

$("#toptoolbar").ligerToolBar({
                items: [
                    { text: '儲存', click: toobaritemclick, icon: 'add' },
                    { line: true }
                ]
            });

 

解析2,樹右鍵菜單

menu = $.ligerMenu({
                top: 100, left: 100, width: 120, items:
               [
               { text: '增加', click: menuitemclick },
               { text: '修改', click: menuitemclick },
               { line: true },
               { text: '查看', click: menuitemclick },
               { text: '刪除', click: menuitemclick }
               ]
            });

loadOrgtree();//載入樹

//修改樹的右鍵菜單

 $("#tree1").ligerTree({

                onContextmenu: function (node, e) {
                    menuNodeID = node.data.id;
                    menuNodeParentID = node.data.parentid;
                    menuNodeText = node.data.text;
                    menu.show({ top: e.pageY, left: e.pageX });
                    return false;
                }
            });

 

 

 

模式化表單樣式

<td class="td_left">上級組織:
            </td>
            <td>
                <input id="ParentOrgNew" name="ParentOrgNew" style="width: 185px;" type="text" />
            </td>

 

$("#ParentOrgNew").ligerPopupEdit({
                width: 185,
                onButtonClick: function () {
                    openDialog();//開啟模式化表單
                }

            });

 

 

function openDialog() {
            var data = null;
            $.ligerDialog.open({
                url: 'dialog/orgdialog.aspx', height: 350, width: 400, title: '組織樹', buttons:
                    [
                        {
                            text: '確定', onclick: function (item, dialog) {

                                var selectOrg = dialog.menuname;//回傳值
                                menuNodeParentID = dialog.menuid;
                                //$("#ParentOrgNew").ligerGetTextBoxManager().setValue(selectOrg);
                                $("#ParentOrgNew").val(selectOrg);
                                dialog.close()
                            }
                        },
                        { text: '取消', onclick: function (item, dialog) { dialog.close(); } }
                    ],
                data: $("#maingrid")
            });
        }

 

開啟介面的返回值設定

window.onload = showDialogData;


function showDialogData() {
            if (dialog == null) return;
        }

        var dialog = frameElement.dialog;

manager = $("#tree1").ligerGetTreeManager();
            $("#tree1").ligerTree({
                onSelect: function (node, e) {
                    dialog.menuid = node.data.id;
                    dialog.menuname = node.data.text;//傳過去的的值
                }
            });


怎刪除右鍵菜單中的選項,以及IE視窗工具菜單下QQ工具條之類的選項?

1.最佳化大師-系統效能最佳化-系統個性設定-右鍵設定或更多設定
2.開啟註冊表(C:WindowsRegedit.exe),尋找有關該串連名的索引值刪除。
.或者直接通過“開始 -> 運行 -> regedit”進入註冊表,來到
“HKEY_CURRENT_USERSoftwareMicrosoftInternet ExplorerMenuExt”位置,
點擊檔案夾的
“+”號,刪除不想要的即可。
 
excel2007 vba 怎製作像透視表欄位列表那樣的工具列或菜單,上面放一個樹結構,可靠右停靠,給範例

好吧, 如果覺得沒用的話我刪了好了

樓下的注意了, 沒用的別回複, 免開尊口
 

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.