Trying to get UIBinder to give me a span not a div

后端 未结 3 480
遇见更好的自我
遇见更好的自我 2020-12-30 03:38

I am building a widget with UiBinder, and I need to have it enclosed in a but UiBinder only gives me

. E.g.
3条回答
  •  清酒与你
    2020-12-30 04:02

    With regards to the answer above by Robert (sorry I can't figure out how to comment that directly)

    This won't work out of the box, as widgets can't be placed inside plain HTML (the compiler will give you "error: found widget in html context"). But there's a simple workaround:

    
      
        
          
        
      
    
    

    One other useful thing to mention is InlineHTML and InlineLabel widgets capable of holding arbitary html or plain text respectively in a

提交回复
热议问题