Skip to content

Instantly share code, notes, and snippets.

@cmilfont
Last active December 11, 2015 03:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cmilfont/4539022 to your computer and use it in GitHub Desktop.
Save cmilfont/4539022 to your computer and use it in GitHub Desktop.
Ext.define("Sorteio", {
extend: "Ext.panel.Panel",
alias: 'widget.sorteio',
layout: "border",
/* ignora demais confs */
reiniciar: function(values) {
this.concorrentes.listar(values);
},
initComponent: function() {
this.callParent();
this.sorteioform.on("busca", this.reiniciar, this);
}
});
Ext.define("Sorteio", {
/* ignora confs */
initComponent: function() {
this.callParent();
this.sorteioform.on("busca",
this.concorrentes.listar,
this.concorrentes);
}
});
Ext.define("Sorteio", {
reiniciar: function(values) {
this.concorrentes.listar(values);
this.ganhadores.update("");
},
initComponent: function() {
this.callParent();
this.sorteioform.on("busca", this.reiniciar, this);
}
});
this.sorteioform.on("busca",
Ext.Function.createSequence(
this.concorrentes.listar,
Ext.Function.pass(this.ganhadores.update, ""),
this.ganhadores),
this.concorrentes);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment