Using jquery-Draggable Function


#1

Did anybody use the draggable function of jquery ?

https://jqueryui.com/draggable/

I tried that, but i get an error: "__WEBPACK_IMPORTED … draggable is not a function "

Do i have to install a jquery-plugin for my ionic project ?


#2

Have you looked at dragula?


#3

Sure. You helped me with the setting. I use it now for some lists. But can i use dragula to move elements on the screen ?


#4

obviously i first have to install jquery-ui

npm install jquery-ui --save

The jquery-ui directory has the desired javascript-File “Draggable”. Im just not sure yet how i can import it ?!? (With “import * as $ from ‘jquery’” i can import jquery). I already tried “”, “import jqueryui from ‘jquery-ui’” and “import * as $ from ‘jquery-ui’”.


#5

Did you find any thing?