Re: [qooxdoo-devel] QxListView data format

2006-03-26 Thread Sebastian Werner
yozzeff schrieb: hi jason, 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 l

RE: {Spam?} Re: [qooxdoo-devel] QxListView data format

2006-03-21 Thread Priebe, Jason
yozzeff wrote: > i see. > can text and icon be combined? > can there be even more attributes combined there? I do not know. The documentation on this sort of thing is a bit light -- I had to dig through the source and examples to figure this one out. Given the depth of QX, I would not be surpri

Re: [qooxdoo-devel] QxListView data format

2006-03-19 Thread yozzeff
hi jason, > 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

RE: [qooxdoo-devel] QxListView data format

2006-03-18 Thread Priebe, Jason
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 : "

Re: [qooxdoo-devel] QxListView data format

2006-03-18 Thread yozzeff
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

Re: [qooxdoo-devel] QxListView data format

2006-03-18 Thread Kent Olsson
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

[qooxdoo-devel] QxListView data format

2006-03-17 Thread yozzeff
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" }}