Skip to content

[FEATURE]: scroll row into view #581

@spike-rabbit

Description

@spike-rabbit

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions