Results 1 to 5 of 5

Thread: list

  1. #1
    Ext User
    Join Date
    Oct 2010
    Posts
    27

    Default list

    Hi - I want to create a list that is actually a queue so does not need an order/grouping but needs to be re-orderable and have a delete function - I am having a really tough time putting it together - any ideas???

    Many thanks

  2. #2
    Ext JS Premium Member Steffen Hiller's Avatar
    Join Date
    Mar 2008
    Posts
    786

    Default

    Check the swipe-to-delete feature in the Twitter example:
    http://dev.sencha.com/deploy/touch/examples/twitter/
    Search something, and then swipe the saved search and a delete button appears.

    Also check the sortable List example here:
    http://dev.sencha.com/deploy/touch/examples/sortable/

    Hope that helps.

  3. #3
    Ext User
    Join Date
    Oct 2010
    Posts
    27

    Default

    Thanks Steffen
    Will look again at the twitter example. Looked at the sortable list menu but it sorts <li> elements, how would I go about including them in a non-html way? Simply include a
    Code:
    sortable: 'true'
    type tag? Also am having trouble deconstructing the list element from the example. I want a simple list that I can build and add to. The existing example one has other elements tied to it that I need to deconstruct...
    HEADACHE. Sorry - am probably being a bit noob but anyway...

    Many thanks

  4. #4
    Ext JS Premium Member Steffen Hiller's Avatar
    Join Date
    Mar 2008
    Posts
    786

    Default

    hmm, ok, yeah, thought the sortable example is based on an Ext.List.

    Unfortunately it doesn't support the sortable option yet.

    I think it shouldn't be that hard to implement though. Look at the TabBar.js source. There the sortable option is implemented via the Ext.util.Sortable.
    Where do you want to save the sorting state?

    Maybe I find time this weekend to play a bit with it.

  5. #5
    Ext User
    Join Date
    Oct 2010
    Posts
    27

    Default

    Will look at the toolBar.js for clues.

    Wanted (I think) the save the store via JSON but am not dealing with the data retrieval side of things (bad way to produce I know). Am working on the interface still need to bear certain things in mind...

    What I want is a queue (list) that has the following functions: an edit button which would release the sortable function and delete function. Does this sound feasible?

    Thanks again

Similar Threads

  1. Replies: 1
    Last Post: 17 Sep 2010, 3:02 AM
  2. Shuttle list or dual selection pick list
    By Whatty in forum Ext 3.x: Help & Discussion
    Replies: 3
    Last Post: 12 Nov 2009, 12:41 PM
  3. Setting list and list item styles for Html widget
    By afs in forum Ext GWT: Discussion
    Replies: 2
    Last Post: 9 Nov 2009, 2:29 AM
  4. [FNR] DND List-to-List INSERT 1.2.4 demo throwing JS errors
    By Baby Dingo in forum Ext GWT: Bugs (1.x)
    Replies: 2
    Last Post: 12 May 2009, 3:05 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •