HI there,
Can we make the header row of a table record to always shown as we scroll the table record?
Thank you very much
regards
Hi Investor,
Refer the below link:
https://success.outsystems.com/Documentation/Development_FAQs/How_to_make_the_header_scroll_with_the_page_in_the_London_theme
Also there's an forge component:
https://www.outsystems.com/forge/component/1009/headerfixed/
Yes, take a look here how to do this behaviour:
https://medium.com/@vembarrajan/html-css-tricks-scroll-able-table-body-tbody-d23182ae0fbc
Hi Marco,
How to do it in Outsystems?
Tq7
Behavioral wrote:
Hi,
Please go through with the below link.
https://success.outsystems.com/Documentation/Development_FAQs/How_to_scroll_records_in_a_table_with_a_fixed_header
Regards,
Pankaj Pant
Pankaj pant wrote:
Hi Pank
It did not work.
When i scroll the browser vertical scroll bar, the header follows going up.
I want the header stays visible.
regards and thank you
While I understand the solotion depends on the situations and the target web browsers, the following CSS code just worked for me. Let me leave a comment here for the later reference.
.TableRecords .TableRecords_Header { position: sticky; top: 0; }
Other ideas can be found in the following link.
https://stackoverflow.com/questions/21168521/table-fixed-header-and-scrollable-body
Fully agree, spent ages in outsystems pages trying to find a well-supported way to do this. Like you say all you need is some good CSS classes. The key attribute is the position: sticky, for documentation on that CSS property check this link: https://developer.mozilla.org/en-US/docs/Learn/CSS/CSS_layout/Positioning
If you want to apply the sticky header to all your table records, just apply the following:
.TableRecords .TableRecords_Header{ position: sticky; top: var(--header-size); z-index: 5; }
Hey José
This snippet itself doesn't seem to do anything (anymore). Could you update this css snippet? I also don't understand why you target the records to make the header sticky.
Kind regards,
Yannick
Nice contribution! José Queirós.