简体   繁体   English

GWT ImageCell进入CellTable

[英]GWT ImageCell into CellTable

How do I put an Image cell (with >1 images) into 1 cell of a CellTable. 如何将一个Image单元(具有> 1个图像)放入CellTable的1个单元中。 Is it possible with gwt? gwt有可能吗? The task is to make a selection between different images. 任务是在不同图像之间进行选择。 thanks for any help or better approaches. 感谢您的帮助或更好的方法。

You need to create a custom cell. 您需要创建一个自定义单元。 Custom cells use an HTML template, so you can implement .render() method to show your images - and other elements, if necessary. 自定义单元格使用HTML模板,因此您可以实现.render()方法以显示图像-必要时显示其他元素。

This is a guide for creating custom cells: 这是创建自定义单元的指南:

https://developers.google.com/web-toolkit/doc/latest/DevGuideUiCustomCells https://developers.google.com/web-toolkit/doc/latest/DevGuideUiCustomCells

I have one article link which describe how to create custom cell with more then one images: 我有一个文章链接,描述了如何使用一张以上的图片创建自定义单元:

Hope may help. 希望可能会有所帮助。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM