7 Mar 2012 2:12 PM #1
Unanswered: Drag and Drop
I'm just looking at Sencha Touch 2 as an option for a new app I want to build. Critical to the app is the ability to drag and drop. I need to essentially sort a list of words between different categories. I want to make a large "box" for each category and lots of smaller boxes for the words. You would drag the words into the desired box which would fire event causing an AJAX call to tell my server which word was put into which box.
To do this I need to be able to define UI components as draggable and others as possible drop targets and I need to be able to do stuff when something is dragged.
Is this possible with Sencha Touch 2? I saw that components can be made draggable, but I didn't see where I could define the drop targets.
Is there documentation or a tutorial for this?
8 Mar 2012 8:00 AM #2
- Join Date
- Mar 2007
- Gainesville, FL
- Vote Rating
The Droppable class isn't supported in the GA release. This will be worked on for a 2.0.x release.Mitchell Simoens @SenchaMitch
Sencha Inc, Senior Software Engineer
Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/
Need more help with your app? Hire Sencha Services email@example.com
Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is in print!
When posting code, please use BBCode's CODE tags.