[Seaside] jQButton - adding additional classes
Milan Mimica
milan.mimica at gmail.com
Mon Apr 18 20:55:43 UTC 2011
John Toohey wrote:
> Hi,
> I want to add 'ui-state-disabled' to a JQButton. The widget hierarchy
> does not respond to #addClass and if I add it to the WAButton, its
> ignored/over-written by the jQuery script. Using #option:at gives me
> the desired class, but removes all the others.
>
This bugged my too for a while. I figured out this way: mark the element
(conditionally) with a class ('disabled-button' in this example) and perform a
script like this:
parentElement script: ((html jQuery this find: '.disabled-button') addClass:
'ui-state-disabled');
--
Milan Mimica
http://sparklet.sf.net
More information about the seaside
mailing list