[Learning notes]-ligerui toolbar, tree structure, right-click menu, pop-up box, learning notes-ligerui

Source: Internet
Author: User

[Learning notes]-ligerui toolbar, tree structure, right-click menu, pop-up box, learning notes-ligerui

Basic

 

 

 

 

Resolution 1, Toolbar

 

Html

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

 

JS

$ ("# Toptoolbar"). ligerToolBar ({
Items :[
{Text: 'save', click: toobaritemclick, icon: 'add '},
{Line: true}
]
});

 

Resolution 2, right-click the tree menu

Menu = $. ligerMenu ({
Top: 100, left: 100, width: 120, items:
[
{Text: 'add', click: menuitemclick },
{Text: 'modify', click: menuitemclick },
{Line: true },
{Text: 'view', click: menuitemclick },
{Text: 'delete', click: menuitemclick}
]
});

LoadOrgtree (); // load the tree

// Modify the context menu of the tree

$ ("# 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;
}
});

 

 

 

Modeled form style

<Td class = "td_left"> superior organization:
</Td>
<Td>
<Input id = "ParentOrgNew" name = "ParentOrgNew" style = "width: 185px;" type = "text"/>
</Td>

 

$ ("# ParentOrgNew"). ligerPopupEdit ({
Width: 185,
OnButtonClick: function (){
OpenDialog (); // open the modeled form
}

});

 

 

Function openDialog (){
Var data = null;
$. LigerDialog. open ({
Url: 'Dialog/orgdialog. aspx ', height: 350, width: 400, title: 'Organizational Tree', buttons:
[
{
Text: 'true', onclick: function (item, dialog ){

Var selectOrg = dialog. menuname; // Return Value
MenuNodeParentID = dialog. menuid;
// $ ("# ParentOrgNew"). ligerGetTextBoxManager (). setValue (selectOrg );
$ ("# ParentOrgNew"). val (selectOrg );
Dialog. close ()
}
},
{Text: 'cancel', onclick: function (item, dialog) {dialog. close ();}}
],
Data: $ ("# maingrid ")
});
}

 

Setting the return value on the Interface

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; // pass the previous value
}
});


How can I delete options in the right-click menu and QQ toolbar under the IE window tool menu?

1. Master Optimization-System Performance Optimization-system personality settings-right-click Settings or more settings
2. Open the Registry (C: WindowsRegedit.exe) and find the key value for this connection name to delete it.
Or directly go to the Registry through "start-> Run-> regedit" and
"HKEY_CURRENT_USERSoftwareMicrosoftInternet assumermenuext" location,
Click
"+" To delete unwanted items.

How does excel2007 vba create a toolbar or menu like the pivot table field list with a tree structure on it, which can be reliably docked right? For example:

Okay, I deleted it if it seems useless.

Pay attention to it downstairs. Don't reply if it's useless. It's free of privilege.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

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.