Sunday, June 27, 2010

Re: Creating tr / td's with UiBinder, how?

I don't want a <div> - as you point out this won't work... I would like to create a <tr> from UiBinder (with no <div> wrapping it).

Cheers.


On Sat, Jun 26, 2010 at 7:09 PM, Thomas Broyer <t.broyer@gmail.com> wrote:


On 26 juin, 11:14, Andrew Hughes <ahhug...@gmail.com> wrote:
> What do you mean by parsing? Is this done by the UiBinder parsing the ui.xml
> templates to generate impl code?

No, I mean parsing done by the browser when you assign innerHTML.

i.e. in plain old JavaScript:
var container = document.createElement('div');
container.innerHTML = '<tr><td>foo<td>bar';
// above, the browser parses the string as HTML into a DOM tree, in
the context of the <div> container

--
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.


--
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.

No comments:

Post a Comment