Skip to content

Instantly share code, notes, and snippets.

@jsjohnst
Created April 30, 2010 03:00
Show Gist options
  • Save jsjohnst/384657 to your computer and use it in GitHub Desktop.
Save jsjohnst/384657 to your computer and use it in GitHub Desktop.
var MainView = new KONtx.Class({
ClassName: 'MainView',
Extends: KONtx.system.SidebarView,
createView: function() {
this.control.button1 = new KONtx.control.TextButton({
guid: "button1",
label: $_("Main.ButtonLabel"),
styles: {
height: 35
},
events: {
onSelect: function(event) {
var dialog = new KONtx.dialogs.Alert({
title: $_("Main.DialogTitle"),
message: $_("Main.DialogMessage"),
buttons: [
{ label: $_("Main.DialogOkButton") }
]
});
dialog.show();
}
}
}).appendTo(this);
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment