Re: Add LIElement to UListElement and HyperLink to LIElement programmatically?

2021-07-29 Thread Jens
Hi,

take a look at com.google.gwt.dom.client.Document class. It has methods for 
creating elements and then you can just stitch them together using 
Element.appendChild() method.

If you want to abstract the logic a bit and/or you need it as Widget you 
could write your own BreadCrumbWidget extends Widget and then use the 
Document class internally to build the DOM structure as needed.

-- J.

ime...@gmail.com schrieb am Sonntag, 25. Juli 2021 um 17:30:52 UTC+2:

>
> Hi all,
>
> What's the correct way to add LIElement to UListElement and HyperLink to 
> LIElement programmatically?
>
> I'm building a breadcrumb using UL.
>
> Slava
>

-- 
You received this message because you are subscribed to the Google Groups "GWT 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-web-toolkit/5b2e36c7-8654-4afc-b4a8-4e5a75c21e01n%40googlegroups.com.


Add LIElement to UListElement and HyperLink to LIElement programmatically?

2021-07-25 Thread Slava Imeshev

Hi all,

What's the correct way to add LIElement to UListElement and HyperLink to 
LIElement programmatically?

I'm building a breadcrumb using UL.

Slava

-- 
You received this message because you are subscribed to the Google Groups "GWT 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-web-toolkit/e7928090-06c7-4384-9844-22df76426775n%40googlegroups.com.