control:{
forgotPassword:{
tap: 'forgotPassword' }}
/** I have also tried... **/
control:{
forgotPassword:{ selector: 'a#forgotPassword', listeners:{ tap: 'forgotPassword' } }}
items:[{
xtype: 'container',
html: '<a href="#" id="registerButton">A test</a>'
}]
items:[{
xtype:'container',
items:[{
xtype:'container',
itemId: 'forgotPassword', html: 'Forgotten Password?' }]
}]
--
Deft JS home page: http://deftjs.org/
Wiki: https://github.com/deftjs/DeftJS/wiki
For rules and tips on asking questions on the Deft JS mailing list: https://github.com/deftjs/DeftJS/wiki/Asking-Questions-on-the-Mailing-List
---
You received this message because you are subscribed to the Google Groups "Deft JS" group.
To unsubscribe from this group and stop receiving emails from it, send an email to deftjs+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/deftjs/e71dfce3-f91d-4693-b277-bd91f6f05326%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
{ xtype:'label', itemId: 'links', html: '<a href="#" class="register">Register</a> | <a href="#" class="forgotPassword">Forgotton Password?</a>', //Tap event is not on label, is on inner element? This code "fixes" the label tap event listeners:{ element: 'element', singletap : function(event, target) { this.fireEvent('singletap', this, event, target); } }
}
links:{ singletap: 'processLinkTap'}
processLinkTap: function(component,touch, target,obj,event){ //probably not right names really, all we need is target though var target_class=target.classList[0];
switch(target_class){ case 'register': this.register(); break; case 'forgotPassword': this.forgotPassword(); break; default: console.log('Unable to determine which link was clicked') break; }}