Histórico da Página
...
Bloco de código | ||||||
---|---|---|---|---|---|---|
| ||||||
var EcmDocumentUpdate = SuperWidget.extend({ id: null, version: null, types: null, bindings: { local: { 'rename-document': ['click_renameDocument'] } }, init: function() { this.id = 10; this.version = 1000; }, renameDocument: function(el, ev) { var that = this; ECMBC.renameDocument({ id: that.id, version: that.version, value: that.value }, function(err, data) { if(err) { return alert(err.responseText); } that.someFunc(data); }); }, someFunc: function(data) { //Qualquer coisa com o retorno de sucesso... } }); |
No application.info de seu widget, adicione o componente como dependência.
...
Tela exibida ao chamar o componente:
Visão Geral
Import HTML Content
Conteúdo das Ferramentas
Tarefas