GuillaumeF
17 Apr 2012, 7:29 AM
Hi,
using ExtJs 4.1
A simple button in a Toolbar :
items: [{
text: 'Déconnexion',
action: 'logout'
}],
I get the logout action in the Controller :
this.control({
'MainToolbar button[action=logout]': {
click: this.onLogout
}
});
And it works fine.
Now I created an html link like this :
items: [{
title: 'myPanel',
html: '<p>blabla</p><p><a href="">Vous déconnecter</a>/<p>'
}]
When the user click on the <a> link, how to get this action in the Controller in the same way the toolbar button do ?
Regards.
using ExtJs 4.1
A simple button in a Toolbar :
items: [{
text: 'Déconnexion',
action: 'logout'
}],
I get the logout action in the Controller :
this.control({
'MainToolbar button[action=logout]': {
click: this.onLogout
}
});
And it works fine.
Now I created an html link like this :
items: [{
title: 'myPanel',
html: '<p>blabla</p><p><a href="">Vous déconnecter</a>/<p>'
}]
When the user click on the <a> link, how to get this action in the Controller in the same way the toolbar button do ?
Regards.