Hej!

It is a fast way to declare variables to values. A more space-consuming
way is:

setLabel("Name");
setWidth(width);

etc

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" }
> };
> 
> 
> var ld = [
>   { name : { text : "File A"}, size : { text : "29 kb" }},
>   { name : { text : "File B"}, size : { text : "1 kb" }}
> ];
> 
> instead simply as
> 
> var ld = [
>   { name : "File A", size : "29 kb" },
>   { name : "File B", size : "1 kb" }
> ];
> 
> 
> 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

Reply via email to