Motivation
Sometimes one may need to draw a users attention to a row.
In order to achieve this, the row must be visible at least.
The table should provide a function, which can scroll any row into the current view.
Previously this could have been implemented manually, by using the no longer exposed body-component.
Proposed Solution
Add a new function to the DatatableComponent:
scrollRowIntoView(row: TRow, options?: ScrollIntoViewOptions) : void {
...
}
ScrollIntoViewOptions is a DOM interface. for the options provided to scrollIntoView. See https://developer.mozilla.org/en-US/docs/Web/API/Element/scrollIntoView
Alternatives Considered
scrollToIndex but is harder to implement for use and also harder to use for apps.
Motivation
Sometimes one may need to draw a users attention to a row.
In order to achieve this, the row must be visible at least.
The table should provide a function, which can scroll any row into the current view.
Previously this could have been implemented manually, by using the no longer exposed body-component.
Proposed Solution
Add a new function to the DatatableComponent:
ScrollIntoViewOptionsis a DOM interface. for the options provided toscrollIntoView. See https://developer.mozilla.org/en-US/docs/Web/API/Element/scrollIntoViewAlternatives Considered
scrollToIndexbut is harder to implement for use and also harder to use for apps.