Hi,
I'm new in sencha, I'm trying to call the function in double tap on a button but it does not work, with a single tap it's work, what's missing? Or maybe there is no double tap in Sencha ?
Can you help me?
Thanks
controller:
Code:
Ext.define('MyApp.controller.Register',
{
extend: 'MyApp.controller.Controller',
requires: [
],
config:
{
views: ['Register'],
refs:
{
view: 'register'
},
control:
{
view:
{
initialize: 'onInit',
}
}
},
onInit: function ()
{
var view = this.getView();
this.getView().down('[name=register]').on('doubletap', this.onRegisterTapped, this);
},
onRegisterTapped: function ()
{
//
}
});
view:
Code:
Ext.define('MyApp.view.Register',
{
extend: 'Ext.form.Panel',
xtype: 'register',
requires:
[
],
config:
{
fullscreen: true,
items:
[
{
docked: 'top',
xtype: 'fl-container',
layout: 'hbox',
items:
[
{
xtype: 'button',
name: 'register',
text: 'Register',
ui: 'confirm',
margin: '0.2em',
width: '5em'
},
]
]}
}
});