thomashan / zkgrails

Automatically exported from code.google.com/p/zkgrails
0 stars 0 forks source link

Support jQuery-Like APIs #217

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Here's a working codes on ZKGrails 2. One of
interesting features is jQuery-Like APIs.

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}")
   }
}

Original issue reported on code.google.com by chanwit on 5 Nov 2011 at 2:15

GoogleCodeExporter commented 9 years ago
Change Sets:
  cd84e179fc8635aaf0c487989c72861146f9fd3c
  fa32d3a759630b7a28ee574bdbb8cffab9c846ca

Original comment by chanwit on 5 Nov 2011 at 2:16

GoogleCodeExporter commented 9 years ago

Original comment by chanwit on 5 Nov 2011 at 2:19

GoogleCodeExporter commented 9 years ago

Original comment by chanwit on 7 Feb 2012 at 5:24

GoogleCodeExporter commented 9 years ago

Original comment by chanwit on 13 Feb 2012 at 1:23