| Justin Patrin 2005-06-09, 3:57 am |
| On 6/8/05, Ken Restivo <ken@restivo.org> wrote:
> On Wed, Jun 08, 2005 at 01:59:20PM -0700, Justin Patrin wrote:
n', blah blah) in the parent form, instead of hacking them in using ->toHTM=
L() methods.[color=darkred]
elements, much as Justin has done in his SubForm::setParentForm() method.[color=darkred]
>=20
> Really? How, exactly? I haven't seen any examples of this yet; didn't kno=
w it was possible.
>=20
>=20
Well, you could store the element in a member variable within your
element and make sure to call onQuickFormEvent on it and include it in
toHtml. You could also have your element extend the group element and
simply add your elements to the group (there's an auto-create function
you can extend, see the date element). Then you don't have to worry
about onQuickFormEvent or toHtml (unless you need special output).
--=20
Justin Patrin
|