Created
April 30, 2010 03:00
-
-
Save jsjohnst/384657 to your computer and use it in GitHub Desktop.
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 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