Thanks, John LaBanca [email protected]
On Sun, Mar 13, 2011 at 2:27 PM, Ramon Salla <[email protected]> wrote: > I am wondering how to use CellTable to have a blazing fast image gallery. > > Le't me explain my idea for a fixed N image column table with hundreds of > rows. > > 1.- Ask to server for a xml/json object with and array of X images grouped > by N images per group. > > - <result> > - <images> > - <group> > - <image> > - <id> 1 </id> > - <url> http://... </url> > - </image> > - </group> > - </images> > - </result> > > 2.- Build a CellTable with one column or a CellList. > An alternative is to use a CellList and modify Resources.Style with "float:left" so the images naturally layout next to each other, wrapping at the end of the line. However, this approach has two drawbacks: 1) you cannot control the number of images per row 2) If the images are different sizes, they won't line up > 3.- Build a custom Cell with N <img> tags. > The images will naturally wrap if the table is too small. Why not use a CellTable with N columns? The row object would be an ImageGroup containing N image URLs. > 4.- Build a DataProvider with the list provided by the server. > > It's that ok to you? Do you think a way to ask the server for a easiest > single array of images (without groups) and use with a DataProvider? > > Thankyou! > > > > > > -- > You received this message because you are subscribed to the Google Groups > "Google Web Toolkit" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]. > For more options, visit this group at > http://groups.google.com/group/google-web-toolkit?hl=en. > -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
