You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[ ] Regression (a behavior that used to work and stopped working in a new release)
[ ] Bug report
[x] Feature request
[ ] Documentation issue or request
Current behavior
Currently [ngx-scroll-to-offset] only supports numbers. This could be a potential problem for, let's say, a mobile layout with a fixed header. For desktop, the offset could be different than for the mobile layout. Ideally, as a user of this library, I would like to be able to pass a function to [ngx-scroll-to-offset] which gets called and returns a value for the offset
I'm submitting a...
Current behavior
Currently
[ngx-scroll-to-offset]
only supports numbers. This could be a potential problem for, let's say, a mobile layout with a fixed header. For desktop, the offset could be different than for the mobile layout. Ideally, as a user of this library, I would like to be able to pass a function to[ngx-scroll-to-offset]
which gets called and returns a value for the offsetExpected behavior
<button [ngx-scroll-to-offset]="calcHeightOffset">Click</button>
The function could be something like:
What is the motivation / use case for changing the behavior?
See 'current behaviour'
The text was updated successfully, but these errors were encountered: