[dev] VarRenderer and custom events
Chuck Hagenbuch
chuck at horde.org
Wed Mar 3 12:29:05 PST 2004
Quoting Matt <matt at kynx.org>:
> Maybe there's an easy way to do this, but from what I can tell I've got
> to override all the various renderVarInput functions so they check
> $var->hasAction() and output the right stuff (like _renderVarInput_text
> does now).
>
> If so, wouldn't it be better automatically checking these in the base
> class (Horde_UI_VarRenderer_html)? Let me know and I'll post a diff.
Yes, that sounds like the right way to go. I purposely didn't complete the
Horde_Form_Action work when I did it; some of it was pretty specific, and I
didn't have the time to do it generally. Anything that makes it more general,
portable, and useful would be welcome. :)
> Incidentally, the stuff I'm adding is for automatically summing elements
> (el1 = el2 + el3 + ...) and another for making the enabled state of one
> element dependant on the value of another. Any interest?
Sure! Send 'em along.
-chuck
--
"Regard my poor demoralized mule!" - Juan Valdez
More information about the dev
mailing list