rasyahadlinugraha / wiquery

Automatically exported from code.google.com/p/wiquery
MIT License
0 stars 0 forks source link

Class selector on ButtonBehavior #221

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Hello,

Is there a way to have a class selector to the ButtonBehavior other than the id 
of the bind component like this :

$('.button').button()
     ▲
     └─── class selector

Because I have lot of button on my page (45) and the javascript evaluation of 
button on ajax request by wicket is to slow.
If I could do that then I could limit the number of ButtonBehavior of my page.

I use version 1.2.3 of wiquery 

Duto

Original issue reported on code.google.com by dutrieux...@gmail.com on 1 Dec 2011 at 8:52

GoogleCodeExporter commented 9 years ago
you could make a subclass and override the statement and return your own 
javascript.

Original comment by hielke.hoeve on 1 Dec 2011 at 9:02

GoogleCodeExporter commented 9 years ago
oki thx : I subclass buttonBehavior and append a trigger getter setter and on 
statement method use trigger if is set rather then the component

Duto

Original comment by dutrieux...@gmail.com on 1 Dec 2011 at 9:12

GoogleCodeExporter commented 9 years ago

Original comment by hielke.hoeve on 2 Dec 2011 at 4:26