How to display list from array of objects? #508
Unanswered
skorotkiewicz
asked this question in
Q&A
Replies: 1 comment
-
Scrolling isn't supported in Ink, but you can use ink-select-input to add a selectable list. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I want to make a simple list to display the contents of an array of objects where you can easily select the next item using the keys.
Unfortunately, when I reach the end of the menu it starts to focus from the beginning instead of scrolling and showing the next items from the array.
It should display the list nicely one by one, and when
item 3
is focused and you scroll down, it should show:item 4
item 5
item 6
As in my attached example which I am trying to build.
Any advice would I be very grateful for.
PS. How to do when the item is focused event onSelect?
Beta Was this translation helpful? Give feedback.
All reactions