Dynamically updating currentPage for InPageNavigationItem #3605
-
Hey there! I am using InpageNavigation and InPageNavigationItem. I am using this within a page in one admin where when I click the link it takes me to the position on a page. I am creating the links dynamically and I wasn't able to find an example where |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
Disclaimer: This is a very experimental bot using OpenAI's GPT-4. The answers may not be correct, a human will review the answer and update it if necessary. Sorry, I don't know how to help with that. The documentation does not provide an example or method for dynamically setting the I did do a search though, and I managed to find these other Discussions that might be similar or related to your question. Give them a read to see if they answer your question. If they do, head back here and update this discussion and mark it as answered, pointing others to the related discussion:
|
Beta Was this translation helpful? Give feedback.
-
Can you supply a CodeSandbox or something to demonstrate a reproduction of the behavior you're seeing? I will say though, Sidebar navigation is designed around a construct of "pages" that relate to a url. Current page is more about decorating the Anchor such that it tells the screen reader user that that link will take them to the page they are already on. It's not designed for skip links. If you're looking for skip links we recommend something like our Table of Contents on the doc site, which the Docs team recreated for themselves pretty easily. Examples: |
Beta Was this translation helpful? Give feedback.
Hey @bvsillorequez - gentle reminder to provide a reproduction of this behavior so that we can take a look. Otherwise we'll mark the Discussion as "answered" for now. Thanks