Add LIElement to UListElement and HyperLink to LIElement programmatically?
54 views
Skip to first unread message
Slava Imeshev
unread,
Jul 25, 2021, 11:30:52 AM7/25/21
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to GWT Users
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
Jens
unread,
Jul 29, 2021, 6:05:15 AM7/29/21
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to GWT Users
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.