On 10 sep, 14:06, "Fred Janon" <[EMAIL PROTECTED]> wrote:
> I am trying to set "align='right'" on the "col" element of a Grid widget.
> Since it's an attribute and has no equivalent, I would like to know what's
> the most elegant way of doing that. I guess I can set a CellFormatter for
> each cell in the column, but I was looking for something more elegant and
> concise.

hmm...

ColumnFormatter uses a <colgroup> containing <col> elements. The
columnGroup field keeps a reference to this <colgroup> and is
protected, so you could create your own ColumnFormatter to gain access
to the field, and use it with a call to grid.setColumnFormatter(),
which means creating your own class inheriting Grid (or HTMLTable)
too.

> Is there any plan to support "align" and "span" on Grid?

Not that I know of; have you tried searching the issue tracker?

> They are in the HTML 4 spec and I think supported by all browsers.

I don't know but note that HTML5 so far has only span="" and global
attributes (class="", style="", etc.) on <col> and <colgroup> elements
(others might be reintroduced before Last Call, but I doubt so, as the
motto is to move the "presentation" facet to CSS).
Also note that CSS 2.1 allows only a few properties on table columns:
http://www.w3.org/TR/CSS21/tables.html#columns
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to