如何使标题具有粘性

如何使标题具有粘性

本文介绍了sap.m.IconTabBar:如何使标题具有粘性/仅内容可滚动的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在寻找一种方法来制作 sap.m.IconTabBar 粘性,意味着标签栏在您可以滚动内容时保持固定.据我所知,对此没有标准的属性支持.有人实施过吗?

I'm looking for a way to make a sap.m.IconTabBar sticky, meaning that the tab bar stays fixed while you can scroll the contents. As far as I can see, there is no standard attribute support for this. Anyone implemented this?

PS: 应该可以通过使用 CSS 属性 position: fixed 到组件的头部部分.

PS: Should be possible by using CSS attribute position: fixed to the header part of the component.

推荐答案

这里我的评论再次作为答案:

here my comment again as answer:

在示例中,我将 sap.m.IconTabBar 的内容包裹在 sap.m.ScrollContainer 中并设置了 vertical 属性为真.

In the example i wrapped the content of the sap.m.IconTabBar in a sap.m.ScrollContainer and set the vertical property to true.

http://jsbin.com/luqurosaye/1/edit?html,output

这篇关于sap.m.IconTabBar:如何使标题具有粘性/仅内容可滚动的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-23 03:42