yozzeff wrote:
> 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" }
> ];

Because you can have other things besides text:

var lc =
{
   name : { label : "Name", width : 100, type : "text" },
   size: { label : "Size", width : 50, type : "text", align : 
 "right" } ,
   filetype : { label : "Type", width : 24, type : "iconHtml" }
};

var ld = {
  { 
    name : { text : "File A"}, 
    size : { text : "29 kb" },
    filetype : { icon : "icons/16/document.png" }
  }
};

Jason Priebe
CBC New Media 


-------------------------------------------------------
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&kid0944&bid$1720&dat1642
_______________________________________________
Qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to