Skip to content

Instantly share code, notes, and snippets.

@rodrigobrito
Last active August 29, 2015 14:07
Show Gist options
  • Select an option

  • Save rodrigobrito/b613014f399ecdf407ac to your computer and use it in GitHub Desktop.

Select an option

Save rodrigobrito/b613014f399ecdf407ac to your computer and use it in GitHub Desktop.
Exemplo de uso de caixa de diálogo.
var title = "<div class='widget-header'><h4><i class='glyphicon glyphicon-registration-mark'></i> Incluindo Novo Registro</h4></div>";
var dialogViewModel = new DialogViewModel();
dialogViewModel.set("resizable", false);
dialogViewModel.set("view", NewDataEntryView);
dialogViewModel.set("title", title);
dialogViewModel.addButton({
html: "<i class='glyphicon glyphicon-floppy-saved'></i>&nbsp; Salvar",
css: "btn btn-success",
functionName: "save"
});
dialogViewModel.addButton({
html: "<i class='fa fa-times'></i>&nbsp; Cancelar",
css: "btn btn-danger",
functionName: "close"
});
shell.showDialog(dialogViewModel);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment