Quantcast
Channel: SmartClient Forums
Viewing all articles
Browse latest Browse all 4756

How can a FormItem know when it's added/attached to a DynamicForm?

$
0
0
Hi guys quick Q. I want a FormItem (SelectItem) to do something (grab a custom attribute from the form) once it's attached to a DynamicForm. Your FormItem objects don't extend from gwt Widget and don't have an onAttach, which which still wouldn't tell me when they're attached to a form anyhow. There's also no onDraw (via BaseWidget).

Any plans to add an "onAddedToForm" type of method or add handler method?

I am able to obtain a reference to the DynamicForm via getForm(), but of course that only works if it's already added to the form, and when writing a standalone FormItem object I'd need to do that once it knows it's been added to a form...

Thanks!
-Becky

Viewing all articles
Browse latest Browse all 4756

Trending Articles