Multiple columns are typically achieved using the following code:
Code:
list.dataProvider = [{col1: "something cool", col2: "something awesome"},
{col1: "something nice", col2: "something naughty"}];
The following comes from our CLIK user's guide (released to licensees):
The TileList automatically will use the property named 'label' if found in the item object:
Code:
list.dataProvider = [{label: "one", data:1}, {label: "two", data:2}];
However if the item object has a different label property, such as the following, then the list can be configured to use that property instead:
Code:
list.labelField = "name";
list.dataProvider = [{name: "one", data:1}, {name: "two", data:2}];
If the logic to construct a label from the item object is complicated and requires a function, then set the labelFunction property:
Code:
list.labelFunction = function(itemObj:Object):String {
// Logic to construct a label
}
list.dataProvider = [{p1: "foo", p2: 1}, {p1: "bar", p2: 2}];
Bookmarks