We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

[EE4] Update to the latest Nestable jQuery plugin?

Developer Preview

Brian Litzinger's avatar
Brian Litzinger
693 posts
7 years ago
Brian Litzinger's avatar Brian Litzinger

I honestly haven’t inspected the nestable.js file in EE4, but in EE3 it’s using the old and no longer maintained plugin. Someone else has forked it and added several useful callbacks and other features. It would be nice if 3rd party devs could use the nestable.js that comes with EE and get access to the callbacks.

https://github.com/RamonSmit/Nestable2

       
Kevin Cupp's avatar
Kevin Cupp
791 posts
7 years ago
Kevin Cupp's avatar Kevin Cupp

Yeah in EE4 it should be largely the same plugin. Since it was abandoned, we’ve been making some modifications to our copy to fix bugs or add functionality, so we currently can’t just drop in a replacement. Which callbacks and features are you looking to use? Maybe we can find a way to merge those in.

       
Brian Litzinger's avatar
Brian Litzinger
693 posts
7 years ago
Brian Litzinger's avatar Brian Litzinger

dragStart and dragStop are the two main ones that I think would be helpful to have.

Have you considered submitting your bug fixes to the new nestable2 project as PRs?

       
Kevin Cupp's avatar
Kevin Cupp
791 posts
7 years ago
Kevin Cupp's avatar Kevin Cupp

Ok I can add in onDragStart and beforeDragStop, but currently not too easy to add the ability to stop execution in the beforeDragStop callback, is that a problem?

Have not considered PRs, I didn’t know about this other project, but might be nice!

       
Brian Litzinger's avatar
Brian Litzinger
693 posts
7 years ago
Brian Litzinger's avatar Brian Litzinger

I assume the 2nd mention of beforeDragStop should have been something else?

onDragStart is probably the better one to have b/c there is already a callback for when the sort order was changed, so thats effectively an onDragStop.

       
Kevin Cupp's avatar
Kevin Cupp
791 posts
7 years ago
Kevin Cupp's avatar Kevin Cupp

No I meant beforeDragStop. Ok I’ll just add the onDragStart callback. Thanks!

       

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.