openui5 icon indicating copy to clipboard operation
openui5 copied to clipboard

Openui 5 table How to freeze the header, not with the vertical scroll bar and scroll

Open smile2014 opened this issue 8 years ago • 3 comments

Openui 5 table How to freeze the header, not with the vertical scroll bar and scroll

smile2014 avatar Dec 22 '17 01:12 smile2014

ColumnListItem

smile2014 avatar Dec 22 '17 09:12 smile2014

this can be achieved by adding a CSS style to the header which uses "position:sticky" however, the sticky position is not yet a completely supported W3C standard.

Currently, it does not work in Ms Internet Explorer, nor Edge.

You can try third party libraries like jquery stickyTableHeader

or you can create 2 tables:

  • one to show the header
  • second (nested in a scrollcontainer with height set to 100%) to show the contents

also: view this comment: https://github.com/SAP/openui5/issues/1741#issuecomment-339293159

FiddleBe avatar Dec 22 '17 09:12 FiddleBe

thank you

smile2014 avatar Dec 25 '17 03:12 smile2014