使用 GWT 的 TabLayoutPanel 在选项卡旁边添加任意文本
目前,我有一个带有几个选项卡的 TabLayoutPanel,每个选项卡内部是一组面包屑。我希望能够在选项卡旁边(在 TabBar 本身内部)显示我的面包屑。我还没有看到有人这样做的任何实例,我开始相信我最终可能会自己重写他们的 TabLayoutPanel 类并在需要的地方实现它,但显然我宁愿不走这条路,除非别无选择。
有人对此有任何指导吗?
Currently, I have a TabLayoutPanel with a few tabs, inside of each tab is a set of breadcrumbs. I would like to be able to display my breadcrumbs right next to the tabs (inside the TabBar itself). I haven't yet seen any instance of someone having done this, and I'm beginning to believe I might end up rewriting their TabLayoutPanel class myself and implementing that where needed, but obviously I'd rather not go that route unless there's no alternative.
Anyone have any guidance on this?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
刚刚遇到同样的问题。以下是大部分相关代码片段。我在选择选项卡时添加了一个 Unicode 箭头,并在取消选择选项卡时将其删除。
Just came across the same problem. Here are most of the relevent code snippets. I added a Unicode arrow when the tab was selected, and removed it when the tab was deselected.