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

pass handle as element???... #209

Closed
mikila85 opened this issue Dec 9, 2019 · 2 comments
Closed

pass handle as element???... #209

mikila85 opened this issue Dec 9, 2019 · 2 comments

Comments

@mikila85
Copy link

mikila85 commented Dec 9, 2019

why not allow to pass handle as element???

@desandro
Copy link
Owner

Thanks for this feature request. Add a 👍 reaction to this issue if you would like to see handle be set with an Element. added. Do not add +1 comments — They will be deleted.

desandro added a commit that referenced this issue Dec 29, 2021
- remove RequireJS docs
- version bump in README
@desandro
Copy link
Owner

Draggabilly v3 has been released, now with updated handle behavior. You can set it to a single element or a Array or NodeList of elements

// select all .handle children with selector string
handle: '.handle'

// set as element
handle: element.querySelector('.handle')

// set as array or NodeList
handle: [ element.querySelector('.handle1'), element.querySelector('.handle2') ]

Please try it out and report back with any issues!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants