Skip to content

Commit

Permalink
Merge pull request #558 from icflorescu/next
Browse files Browse the repository at this point in the history
Add link to standard `scrollTo` method on example page
  • Loading branch information
icflorescu authored Mar 5, 2024
2 parents 43a0f7e + a63f2ff commit 66f0105
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion app/examples/scrolling-a-row-into-view/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,11 @@ export default async function ScrollIntoViewExamplesPage() {
<PageSubtitle value="Using table viewport scrollTo" />
<Txt>
If the DataTable resides in a page with a more complex layout and you want to avoid scrolling the entire page
when bringing a row into view, you can use the <Code>scrollTo</Code> method of the table viewport element:
when bringing a row into view, you can use the{' '}
<ExternalLink to="https://developer.mozilla.org/en-US/docs/Web/API/Element/scrollTo">
<Code>scrollTo</Code>
</ExternalLink>{' '}
method of the table viewport element:
</Txt>
<ScrollToExample />
<Txt>Here is the code:</Txt>
Expand Down

0 comments on commit 66f0105

Please sign in to comment.