Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[upgrade] Create handle option #7

Closed
trojkat opened this issue Mar 7, 2012 · 2 comments
Closed

[upgrade] Create handle option #7

trojkat opened this issue Mar 7, 2012 · 2 comments

Comments

@trojkat
Copy link

trojkat commented Mar 7, 2012

When you got links inside ul list sometimes when you click them you move whole li element. Is there a way to specify handle element?

Example:

          <li><span class="handle">move me</span> <a href="http://google.com/">Google</a></li>
          <li><span class="handle">move me</span> <a href="http://jquery.com/">jQuery</a></li>
    </ul>```

```javascript
$('#tree1').tree({
    data: data,
    handle: '.handle'
});

Demo - http://demo.wil-linssen.com/jquery-sortable-ajax/

@mbraak
Copy link
Owner

mbraak commented Mar 7, 2012

Yes, you can use the 'onIsMoveHandle' option. See http://mbraak.github.com/jqTree/#tree-options-onismovehandle

@trojkat
Copy link
Author

trojkat commented Mar 7, 2012

Omg, sorry, I'm blind :-/

@trojkat trojkat closed this as completed Mar 7, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants