hi kent,
> It is a fast way to declare variables to values. A more space-consuming
> way is:
>
> setLabel("Name");
> setWidth(width);
i understand that. but my question was not so much about the column
description but rather about the list data!
so again. why
var listdata = [
{ name : { text : "File A"}, size : { text : "29 kb" }},
{ name : { text : "File B"}, size : { text : "1 kb" }}
];
instead of
var listdata = [
{ name : "File A", size : "29 kb" },
{ name : "File B", size : "1 kb" }
];
yozzeff
> Because it has to do with a declaration structure's definition. Look
> both in the source as well as in javascript documentation. It has also
> been chosen to define the type as part of the declaration. Sure, it can
> be done in other ways too.
>
> Kent
>
> On Fri, 2006-03-17 at 22:04 +0100, yozzeff wrote:
>
>>hi,
>>
>>can anybody explain me the reasoning why i need to define
>>list view data as this
>>
>>var lc =
>>{
>> name : { label : "Name", width : 100, type : "text" },
>> size: { label : "Size", width : 50, type : "text", align : "right" }
>>};
>>
>>
>>
>>
>>thanks
>>
>>yozzeff
>>
>>
>>-------------------------------------------------------
>>This SF.Net email is sponsored by xPML, a groundbreaking scripting language
>>that extends applications into web and mobile media. Attend the live webcast
>>and join the prime developer group breaking into this new coding territory!
>>http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
>>_______________________________________________
>>Qooxdoo-devel mailing list
>>[email protected]
>>https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
>
>
>
>
> -------------------------------------------------------
> This SF.Net email is sponsored by xPML, a groundbreaking scripting language
> that extends applications into web and mobile media. Attend the live webcast
> and join the prime developer group breaking into this new coding territory!
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
> _______________________________________________
> Qooxdoo-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
>
-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
Qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel