Skip to content

Instantly share code, notes, and snippets.

@chanwit
Created November 4, 2011 19:01
Show Gist options
  • Select an option

  • Save chanwit/1340188 to your computer and use it in GitHub Desktop.

Select an option

Save chanwit/1340188 to your computer and use it in GitHub Desktop.
ZKGrails 2 - Ex. 1
class UserComposer extends GrailsComposer {
def afterCompose = { wnd ->
$('#buttonHolder').append {
button(label:"B1.1")
button(label:"B1.2")
button(label:"B1.3")
}
binds wnd
}
@Listen('#buttonHolder > button.onClick') test(e) {
alert("hello ${e.target.label}")
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment