如何使用CellTable进行单行扩展? [英] How to do single row expansion with CellTable?

查看:96
本文介绍了如何使用CellTable进行单行扩展?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图使用新的GWT CellTable小部件,但我的表需要支持一行扩展,即在一行的左侧有一个zippy,当它被单击时,该行应该展开以提供更多详细信息并这一行应该跨越所有列。 CellTable可以实现吗?

I'm trying to use the new GWT CellTable widget but my table needs to support one row expansion, i.e. there is a zippy on the left of a row and when it's clicked, the row should expand to provide more detail information and this row should span across all columns. Is it possible to achieve this with the CellTable? How do I add a row that spans all columns between other rows dynamically?

任何帮助将被赞赏!

推荐答案

GWT 2.5会添加一个 CellTableBuilder ,其目的是允许这类事情。

GWT 2.5 will add a CellTableBuilder with the exact goal of allowing this kind of things.

您可以在 http://showcase2.jlabanca- testing.appspot.com/#!CwCustomDataGrid (点击显示朋友单元格)

You can find a live example at http://showcase2.jlabanca-testing.appspot.com/#!CwCustomDataGrid (click on the "show friends" cells)

这篇关于如何使用CellTable进行单行扩展?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆