For a widget-based solution, without rolling out something in-house, my
preferred approach is to use TextButton [1].
Note that there is not a direct method to setup the icon of the inner cell,
so you have to subclass TextButton and add a simple method like:
public void setIcon(ImageResource
Hi,
I'm creating a custom Label widget that should have an icon on the left.
I came up with 2 solutions, could you recommend on one?
- ImageResourceRenderer
- FlowPanel wrapping g:Image and g:InlineLabel
Would you prefer one of them? And if, why?
I already have the FlowPanel solution working