1. #1
    Sencha User
    Join Date
    Mar 2012
    Posts
    1
    Vote Rating
    0
    adamzr is on a distinguished road

      0  

    Question Unanswered: Drag and Drop

    Unanswered: Drag and Drop


    Hi,

    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?

    Thanks!

  2. #2
    Sencha - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    37,525
    Vote Rating
    872
    Answers
    3564
    mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute

      0  

    Default


    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 Forum Manager
    ________________
    Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
    https://github.com/mitchellsimoens

    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 services@sencha.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.

Thread Participants: 1

Tags for this Thread