How to scroll a tab to the top when opening it?

0
Good morning everyone, I'm using multiple tabs in a project, all of the tabs contain a considerable amount of data so that scrolling is necessary to be able to fill in all the items. But for example when I fill in the bottom items of the first tab and I switch to the second tab, the second tab opens also at the bottom (it's like the system uses the position of the first tab to open the second tab). I would like to open the tab always on the top. Is there a simple way to achieve this? (working with 8 different tab pages). Best regards,
asked
2 answers
0

Hi Bjorn,

This is not possible by default, but I can think of several workarounds:

  • Open the page with a nanoflow and add an OnClick listener event to the tab buttons using a JavaScript which performs a scroll to top function.
  • Change the tabcontainer to buttons and add separate pages for each tab. You'd have to style the buttons to look like tabs.
  • Add a nanoflow in each tab as a datasource nanoflow which performs a JavaScript scroll to top function. 
answered
0

Thx Jordy!

answered