Last active
August 29, 2015 14:07
-
-
Save rodrigobrito/b613014f399ecdf407ac to your computer and use it in GitHub Desktop.
Exemplo de uso de caixa de diálogo.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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> Salvar", | |
| css: "btn btn-success", | |
| functionName: "save" | |
| }); | |
| dialogViewModel.addButton({ | |
| html: "<i class='fa fa-times'></i> 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