How do you suggest handling images when the names are not known until runtime? Perhaps build the CSS on-the-fly and write it to the document before calling functions to display them in the grid?
Thanks,
Ken
Sunday, February 3, 2008
You can modify the cell template to use image URL instead of the css name. You should get access to the image span -
var image = cell.getContent("box/image");
replace the current 'image' class with some static value
image.setClass("image", "url");
possibly add some formatting rules to this class (in css)
.aw-image-url {
width: 16px;
height: 16px;
}
and add dynamic style which links to the image files -