Yang-Tang / shinyjqui

jQuery UI Interactions and Effects for Shiny
https://yang-tang.github.io/shinyjqui/
Other
271 stars 32 forks source link

How to add only vertically draggable in Jqui #61

Closed SubhadipDatta closed 3 years ago

SubhadipDatta commented 4 years ago

I am using this to options but not working. Please help me. How to use this in shiny app R ?

jqui_draggable(ui,options="axis:'y'")

https://api.jqueryui.com/draggable/#option-axis

trafficonese commented 4 years ago

You have to wrap the options in a named list: jqui_draggable(ui, options = list(axis = 'y'))

SubhadipDatta commented 4 years ago

You have to wrap the options in a named list: jqui_draggable(ui, options = list(axis = 'y'))

Thank you, this is working now but not working in mobile devices. I heard about touch punch, can you help me how to use it in shiny app. Actually I am confused with it.