kirbydesign / designsystem

Kirby Design System
https://cookbook.kirby.design
MIT License
83 stars 22 forks source link

[Enhancement] Public scroll interaction and events on kirby-page #3352

Open RasmusTraeholt opened 7 months ago

RasmusTraeholt commented 7 months ago

Describe the enhancement

Public scroll interaction and events on kirby-page

Describe the solution you'd like

Team-3 needs the option to listen for scrollY events and have a scrollTo() like callback function (like the native document and element .scrollTo() and .scrollY api), that enables programmatically scrolling in the kirby-page to a specific point.

Specifically our needs revolves around the kirby-tab-bar coupled with a ng-switch in the kirby-page-content and the ability to remember scroll positions when switching content (switching tabs). But instead of solving this issue locally, we believe it would be more beneficial if this was addressed by Kirby.

Have you considered any alternatives?

I am not aware of any viable long term solution to our needs right now.

Are there any additional context?


Checklist:

The following tasks should be carried out in sequence in order to follow the process of contributing correctly.

Refinement

Implementation

The contributor who wants to implement this issue should:

Review

Once the issue has been implemented and is ready for review: