Hybrid View

  1. #1
    Sencha User
    Join Date
    Nov 2007
    Location
    Los Angeles
    Posts
    79
    Vote Rating
    13
    wnielson will become famous soon enough

      1  

    Default ListActions Plugin

    ListActions Plugin


    I needed a quick and easy way to do operations on many items selected in a list in a similar manner to how the Mail app on iOS works, so I put together this simple plugin (see below for screens and a video). It is designed to work with the newer Sencha Touch 2.1 list scrolling mechanism. I'm just cleaning up the code, then it'll be on GitHub and the Market for those interested. It is still a little rough around the edges, but is usable and very easy to add to an existing list because it is implemented simply as a plugin.

    Update:

    Code is here: https://github.com/wnielson/sencha-ListActions

    Example of how to add list action functionality to an existing list:

    Code:
    plugins: [{
        xclass: 'Ext.ux.plugin.ListActions',
        actionsToolbar: {
           items: [{
               text: 'Delete (0)',
               ui: 'decline',
               eventName: 'delete'
           },{
               text: 'Move (0)',
               eventName: 'move'
           },{
               text: 'Mark (0)',
               eventName: 'mark'
           }]
        }
    }]
    Screen Shot 2012-12-12 at 10.38.18 AM.png
    Screen Shot 2012-12-12 at 10.38.21 AM.png
    Screen Shot 2012-12-12 at 10.38.29 AM.png
    Screen Shot 2012-12-12 at 10.38.37 AM.png

    Video:

    http://player.vimeo.com/video/55468670

  2. #2
    Sencha User sailei1's Avatar
    Join Date
    Jul 2011
    Location
    BeiJing China
    Posts
    43
    Vote Rating
    0
    sailei1 is on a distinguished road

      0  

    Default


    good! Can you provide the example of the video?
    Chinese

  3. #3
    Sencha Premium Member dawesi's Avatar
    Join Date
    Mar 2007
    Location
    Melbourne, Australia (aka GMT+10)
    Posts
    1,083
    Vote Rating
    44
    dawesi has a spectacular aura about dawesi has a spectacular aura about

      0  

    Default


    nice one, will play with it shortly.
    Teahouse Training Company
    Official Certified Sencha Trainer

    Australia / New Zealand / Singapore / Hong Kong & APAC



    SenchaWorld.com - Sencha webinars, videos, etc
    SenchaForge.org - (coming soon)
    TeahouseHQ.com - Sencha ecosystem training portal

    Code Validation : JSLint | JSONLint | JSONPLint

  4. #4
    Touch Premium Member hotdp's Avatar
    Join Date
    Nov 2010
    Location
    Denmark
    Posts
    603
    Vote Rating
    14
    hotdp will become famous soon enough

      0  

    Default


    Can you drag/drop/sort items?

  5. #5
    Sencha User
    Join Date
    May 2012
    Posts
    3
    Vote Rating
    0
    srinicg is on a distinguished road

      0  

    Default couldn't work it out sencha touch 2.2.

    couldn't work it out sencha touch 2.2.


    is it due to the new icon design in 2.2?