Hi Derrell,
You mean the
... resizeBehavior.set(0, { width:"1*", minWidth:40, maxWidth:80 });
thing ? This is what I am doing at the moment, but I wondered if
there was a way to have the table figure out the column widths
based on the coulumn content ...
cheers
tobi
Yesterday Derrell Lipman wrote:
> On Fri, Nov 28, 2008 at 11:15 AM, Tobias Oetiker <[EMAIL PROTECTED]> wrote:
>
> > Is there a way to have to qooxdoo 0.7 table widget automatically
> > figure out the initial column width so that it adapts to the content
> > shown ?
>
>
> Hi Tobi,
>
> Take a look at
> http://demo.qooxdoo.org/devel/demobrowser/#table~Table_Resize_Columns.html
>
> Although that demo is using the 0.8 (trunk) code, I don't believe there have
> been any changes to the API to Table since 0.7. In particular, look at how
> tableColumnModel is specified in the "custom" parameter to the constructor,
> and then how resizeBehavior is used. (You'll likely want to look at the API
> documentation for qx.ui.table.columnmodel.Resize.)
>
> In case you don't know, you can view the source code the this example by
> pressing the "JS Code" button near the top right.
>
> Cheers,
>
> Derrell
>
--
Tobi Oetiker, OETIKER+PARTNER AG, Aarweg 15 CH-4600 Olten, Switzerland
http://it.oetiker.ch [EMAIL PROTECTED] ++41 62 775 9902 / sb: -9900
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel