-
1 Mar 2011 10:06 AM #1
Pressing a disclosure button also triggers the itemtap event
Pressing a disclosure button also triggers the itemtap event
Hi,
Setting different handlers for the "disclosure" and "itemtap" events on a list doesn't work because both are called when the disclosure button is pressed.
Best regards,
Werner Donné.
-
4 Mar 2011 2:20 PM #2
you are right with 1.0.1a
as a workaround, you can check event target :
if (e.getTarget('.x-list-item-body') ) {
console.log("itemt tap!");
} else {
console.log("disclosure!");
}
-
7 Mar 2011 10:16 AM #3
-
2 Sep 2011 4:25 AM #4
Hello,
this bug is also on 1.1.0.
i add : Your trick did it to me, but sometimes when tap on event, the disclose also triggers. Don't know how to fix it.
-
3 Oct 2011 7:23 AM #5
Where is "e" defined in this scenario?
twitter.com/epiphanydigital #sencha #drupal #jquery #craftbeer #guitar #photography
-
3 Oct 2011 7:39 AM #6
On the Sencha touch Doc :
Disclose : ( Ext.data.Record record, Ext.Element node, Number index,Ext.util.Event e )
So, it's the Event in the Disclose's arguments.
-
3 Oct 2011 8:56 AM #7
What I ended up doing:
Works great. Thanks guys!Code:onItemDisclosure : true, listeners : { itemtap : function(record,index,item,e){ if (e.getTarget('.x-list-disclosure')) { Ext.Msg.alert("Disclosure clicked!"); } else { Ext.Msg.alert("Item clicked!"); } } }
Anyone have any idea how to change the icon????twitter.com/epiphanydigital #sencha #drupal #jquery #craftbeer #guitar #photography
-
14 Oct 2011 1:51 AM #8
Simply add a 'cls' attribute on any .x-list-disclosure's parent (on the Ext.List itself for example)
Then change your .css :
.your-list-cls .x-list-disclosure {
-webkit-mask: none;
background-image: url('../img/trashcan.png') !important;
background-size: 100% 100%;
-webkit-background-size: 100% 100%;
background-color: transparent !important;
background-repeat: no-repeat;
background-position: center;
width: 2em;
height: 2em;
}
-
14 Oct 2011 4:36 AM #9
Thanks!
twitter.com/epiphanydigital #sencha #drupal #jquery #craftbeer #guitar #photography
-
31 Oct 2011 9:40 PM #10
how to display details of selected record in next page
how to display details of selected record in next page
i want to display details of selected record in next page without a pressing a disclosure button
Thank you for reporting this bug. We will make it our priority to review this report.
Similar Threads
-
disclosure and itemtap on list
By stefx in forum Sencha Touch 1.x: DiscussionReplies: 1Last Post: 2 Sep 2011, 4:23 AM -
how to add disclosure button to the list
By lukesayaw in forum Sencha Touch 1.x: DiscussionReplies: 0Last Post: 20 Oct 2010, 5:08 PM -
Pressing 'Enter' key that triggers a button causes issue on TextArea
By zet in forum Ext GWT: DiscussionReplies: 2Last Post: 22 Sep 2010, 5:45 PM -
Any event available on pressing Ext.PagingToolbar Refresh button
By syedarshadali in forum Ext 3.x: Help & DiscussionReplies: 2Last Post: 28 Oct 2009, 4:36 AM -
ColumnTree with column button that triggers an event
By xnd in forum Ext 3.x: Help & DiscussionReplies: 1Last Post: 3 Sep 2009, 7:04 AM


Reply With Quote