Opened 9 years ago
Closed 9 years ago
#14428 closed defect (fixed)
dojox.mobile.ListItem onClick has no callback
Reported by: | Eric Wang | Owned by: | ykami |
---|---|---|---|
Priority: | high | Milestone: | 1.8 |
Component: | DojoX Mobile | Version: | 1.7.0 |
Keywords: | todoapp | Cc: | |
Blocked By: | Blocking: |
Description
dojox.mobile.ListItem? onClick has no callback method.
In application, we need to click ListItem?, get the ListItem? id and pass the id to next view. However, ListItem? has no callback to implement, if provides the onClick function by
data-dojo-props="onClick: function(e){do something...}"
the default onClick function is overrided
Change History (3)
comment:1 Changed 9 years ago by
Keywords: | todoapp added |
---|
comment:2 Changed 9 years ago by
Status: | new → assigned |
---|
Note: See
TracTickets for help on using
tickets.
Thank you for the report. Actually I had been thinking of this issue too. I will rename the existing onClick method to _onClick, and create a new empty onClick method, which is called from _onClick, for a user defined handler. I believe this is what typical dijit widgets do. Also, to allow the user to override the onClick method, I will add handling of function-type parameters to dojox.mobile.parser.