On Thu, 2003-11-20 at 15:10, Nicola Larosa wrote:
> You already can, just pass a keyword parameter (css_class = "aStyle") to the
> widget constructor.
Not true in form2, and I believe was only true for TextWidget in the
original form implementation. I'm sure that's just an oversight.
(nb: I like the form2 implementation very much so far. Forms are simpler
and easier to grasp)
It would be extremely useful to be able to pass CSS "class"
attributes/values, as well as "id" atts/vals to any form object,
including and especially the form itself.
I was going to suggest doing the same for WidgetRow object too, but I
just realized I can accomplish what I was thinking of doing through
simple subclasses of WidgetRow and Form. An example use case -- setting
a different CSS "class" value for a form row with an error condition.
--
Mike Watkins
mw@mikewatkins.net
Hanlon's Razor:
Never attribute to malice that which is adequately explained by
stupidity.