Monday, August 8, 2011

Custom widgets containing other HTML/widgets

I'm trying to create a custom widget that would internally be
represented by a simple DIV and a BUTTON element, but which would accept
other widgets inside it, pretty much like HTMLPanel.

So, I want something like this...

<div class="XXX">
<button class="YYY"></button>
{other widget(s) here}
</div>

...encapsulated inside some widget, say WrapperWidget. Then, I could use
this WrapperWidget inside some other (multiple) ui.xml files:

<ns:WrapperWidget>
<ul>
<li>item 1</li>
<li>item 2</li>
</ul>
</ns:WrapperWidget>

How is that achievable in GWT?

Thanks!

--
Ionuț G. Stan | http://igstan.ro

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate