Results 1 to 2 of 2

Thread: How to handle list item tap and disclosure tap differently ?

  1. #1
    Sencha User
    Join Date
    May 2017
    Posts
    39
    Answers
    9

    Default Answered: How to handle list item tap and disclosure tap differently ?

    When I tap disclosure or item row it fires to the same handler function. How to treat it differently?

  2. smth like solved

    Code:
    {
    xtype: 'list',
             listeners : {
                disclose: function(view, record, target, index, e, eOpts) {
                    e.stopPropagation()
                    return false;
                },
    
    
                itemtap: function( dataview, index, target, record, e, eOpts ){}
             }
    }

  3. #2
    Sencha User
    Join Date
    May 2017
    Posts
    39
    Answers
    9

    Default

    smth like solved

    Code:
    {
    xtype: 'list',
             listeners : {
                disclose: function(view, record, target, index, e, eOpts) {
                    e.stopPropagation()
                    return false;
                },
    
    
                itemtap: function( dataview, index, target, record, e, eOpts ){}
             }
    }

Similar Threads

  1. Can I style each individual list item differently?
    By mpeters75 in forum Sencha Touch 2.x: Q&A
    Replies: 2
    Last Post: 30 Sep 2014, 12:29 AM
  2. Open list on item disclosure
    By Agitto in forum Sencha Touch 2.x: Q&A
    Replies: 2
    Last Post: 6 Jul 2013, 11:55 AM
  3. set Item Disclosure in List Dynamically
    By pwr4563 in forum Sencha Touch 2.x: Q&A
    Replies: 2
    Last Post: 17 Jul 2012, 3:35 AM
  4. Disclosure by tapping the list item instead of the disclosure icon?
    By sevenshot in forum Sencha Touch 2.x: Q&A
    Replies: 2
    Last Post: 16 May 2012, 8:47 AM
  5. disclosure item on list
    By todos27 in forum Sencha Touch 2.x: Q&A
    Replies: 1
    Last Post: 16 Mar 2012, 8:07 AM

Tags for this Thread

Posting Permissions

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