Comments (11)
This sounds like a good idea. I will look into it.
from jqtree.
Thank you!
jqTree is the first solution after half of dozen attempted by, where I have no troubles except the subj.
It is really lightweight but powerful and clearly documented. And it's reliable!
from jqtree.
The tree.contextmenu event has a the property click_event, which is the original contextmenu event.
This property is not documented yet, but I think you could use it to get the mouse coordinates:
event.click_event.pageX; event.click_event.pageY;
Please let me know if this works.
from jqtree.
Awesome! It works :)
Maybe you will add this in the docs?
Thank you again.
from jqtree.
Quick test:
xubuntu 12.04 FF, Chromium, Opera - ok
Win 7 IE9, FF, Opera, Safari, Google Chrome - ok
Win XP FF, Google Chrome - ok
all browsers are up-to-date.
XP IE8 - context menu script fail... no comments
from jqtree.
This is now added to the docs in the dev branch.
from jqtree.
Hi, Marco! Eventually I've got Context Menu working with jqTree. It can create, edit and delete folders and works without significant bugs :). Unfortunately, at the moment I have no skills in AJAX, so it interacts with server with page reload. (Todo!)
I'm not sure whether my code ready to be published on GitHub, so may I ask you, if you'll find a time, have a look at it here:
http://dl.dropbox.com/u/21872445/jqtree_contextmenu.zip
There are 4 files in zip archive:
- modified jquery.contextmenu.js
- jqtree_contextmenu.php - piece of code from view file with initialization of jqTree and Context Menu. It's huge!
I put the last one in view file to have easy access to PHP variables that passed to javascript. - 2 screenshots
I guess, documents tree + context menu is interested not just me.
Suggestions and criticism are welcome!
Eugene
from jqtree.
I will have a look at it.
from jqtree.
Hello Eugene,
It looks very nice.
I would certainly add an html example, because not everybody uses php.
Marco
from jqtree.
Hi Marco,
I really satisfied that result of my work is quite acceptable :)
What about html, I was hurrying to share working ContextMenu and just copy-pasted an existing code, so I would appreciate if you'll write an html example.
One string that I've commented to access browser context menu (jquery.contextmenu.js, str ## 88, 89):
menu.css({zIndex:1000001, left:left, top:top});
//.bind('contextmenu', function() { return false; });
should be uncommented in production version:
menu.css({zIndex:1000001, left:left, top:top})
.bind('contextmenu', function() { return false; });
Eugene
from jqtree.
Eugene,
I can't possibly do that. I really don't have the time available.
Marco
from jqtree.
Related Issues (20)
- What can I do if I choose only child multiple times HOT 6
- How to export and import jqTree data? HOT 9
- Rename selected node HOT 3
- Autoscroll - top level dragged item no scroll over the items under it. HOT 20
- Feature: ES6 support HOT 9
- Behavior changed with 1.7.0 HOT 3
- Set jQuery as a peer dependency
- Fix eslint import error
- Is documentation page dead? HOT 4
- Inconsistent/incorrect drag & drop node highlighting HOT 9
- New root node missing icon HOT 3
- AddToSelection doesn't seem to use "mustSetFocus" HOT 4
- How to use jqTree with jQuery latest version 3.7.1 in ASP.NET HOT 4
- getPreviousNode() behaves differently HOT 4
- changed documentation? HOT 2
- function onCanMoveTo can't be override HOT 2
- Drag & Drop multiple nodes HOT 4
- Injection vulnerability because of lodash.template HOT 3
- The tree is not rendered, nothing happens.
- ContextMenuEvent HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from jqtree.