Open ethernian opened 5 years ago
@alsakhaev : what is the semantic difference between actions defined in button directly (like exec
) and those defined on section on: { ... }
?
Ext.create('Ext.Button', {
renderTo: Ext.getBody(),
text: 'My Button',
listeners: {
mouseover: function() {
this.hide();
},
hide: function() {
// Waits 1 second (1000ms), then shows the button again
Ext.defer(function() {
this.show();
}, 1000, this);
}
}
});
Which of implementation strategies is the better one?
it should be possible to define event handlers on the global level of the feature or on the group of the same buttons. These events will cause changes on widgets initiated from outside.
sketching idea