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

Drag ID-ed objects via jquery #6

Closed
rubyFeedback opened this issue Sep 11, 2021 · 1 comment
Closed

Drag ID-ed objects via jquery #6

rubyFeedback opened this issue Sep 11, 2021 · 1 comment

Comments

@rubyFeedback
Copy link

Could you mention whether dragging objects via jquery is handled by replace-jquery as well? I use that feature
of jquery primarily on many images. I like being able to shift the image a bit. I know there is more-than-one-way
to do it but I settled for jquery, so knowing that it is easily possible in vanilla js and replace-jquery suggesting
the alternative would be useful IMO. Perhaps the main README could mention that.

It's jquery-ui though so not sure this applies to the project as well (not sure whether jquery-ui is handled by
replace-jquery or not)

See here how that code looks for jquery: https://www.javatpoint.com/jquery-ui-draggable

@sachinchoolur
Copy link
Owner

Hey @rubyFeedback,

Jquery Ui is a collection of libraries built on top of the jQuery library. It is not handled by replace-jQuery.

I just ran replace-jQuery on jQuery UI and it used more than 70 jQuery functions including functions with native equivalents.

If you want to get rid of jQuery-ui-draggable, I'd recommend you to use any tiny draggable JavaScript libraries or do it by using plain JavaScript

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