Get inspired by ButtonCell source code. All you need is to set image as css background. But css styles doesn't work. At least they didn't use to. You have to create button with own css class name and define background image for css class. Something like <button class="cssClassWithBackgroundImage">. Or use <img> tag and set hand cursor (through css class too).
On 13. Okt, 14:58 h., Ash <[email protected]> wrote: > Hi All, > > Did anyone managed to add a image to a cell that can be clicked (or a > button with image on it)?? > > I'm trying from last two days.. plz help. > > Thanks, > -ash > > On Aug 15, 6:55 pm, NR <[email protected]> wrote:> Thank you all. Adding > the DataGrid directly to a LayoutPanel works. > > > On Aug 15, 8:02 am, Jeff Larsen <[email protected]> wrote: > > > > DockPanel mainPanel = new DockPanel(); > > > > DockPanel isn't a LayoutPanel. Try DockLayoutPanel. -- 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.
