[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.