Skip to content

Using GridList for items displayed in grid (multiple columns) #5034

Closed Answered by devongovett
rolanday asked this question in Q&A
Discussion options

You must be logged in to vote

I think you're asking for a variable number of columns similar to cards, not a table. You might look at ListBox which does support grid layouts. However, note that the items cannot contain interactive elements like buttons.

GridList does not support grid layouts because the left and right arrow keys move between the focusable children, so you wouldn't be able to move to the next column. If we changed that to move between columns then there would be no way to get to the focusable children. We haven't found a good keyboard navigation pattern to support both yet. Usually we recommend using a list box and showing actions using a toolbar outside the list like a spectrum ActionBar.

Replies: 5 comments 2 replies

Comment options

You must be logged in to vote
1 reply
@rolanday
Comment options

Comment options

You must be logged in to vote
1 reply
@rolanday
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by rolanday
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants