sap.m.Table - Vertical Scrolling with Fixed Header

后端 未结 4 2181
失恋的感觉
失恋的感觉 2020-12-15 13:39

I have one table having lots of data. Now I want to scroll vertically with table header fixed. can I achieve this?

Here is my code:



        
4条回答
  •  既然无缘
    2020-12-15 14:36

    As of v1.54, the property sticky is publicly available.

    sticky
    Defines the section of the sap.m.Table control that remains fixed at the top of the page during vertical scrolling as long as the table is in the viewport.

    Once its value is set to "ColumnHeaders", the headers will stay fixed while scrolling.

    Be aware that this feature is supported only by modern browsers.


    • Demo: https://jsbin.com/ticivew/edit?js,output
    • Property description
    • Other sticky optionsv1.56 - The syntax for assigning multiple values in XMLView looks as follows:

      提交回复
      热议问题