如何在图块列表中放置标题?
我不想制作带有标签的 hbox,并且全部用于平铺列表中的静态标题...是否有一种捷径可以轻松地将列标题放入 Flex 的平铺列表中?
谢谢
I dont want to make hboxes with labels and all for static headers in tile list... IS there a shortway to put column headers in a tile list in flex easily?
Thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
TileList
并不像DataGrid
那样工作,并且不支持列标题。它的布局应该根据渲染器的大小和TileList
本身的尺寸而变化。如果您想将标题放在TileList
中的项目上方,则必须将其放置在Canvas
或VBox
等容器内,并且手动定位标题标签。A
TileList
isn't meant to work like aDataGrid
and doesn't have support for column headers. It's layout is meant to be fluid based on the size of your renderer and the dimensions of theTileList
itself. If you want to put headers above the items in yourTileList
, you'll have to place it inside a container like aCanvas
orVBox
and position the header labels manually.