You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
The selection prompt has a converter for displaying, but it's dependent on the developer to handle padding, etc. for options. The grid and table constructs have excellent padding and display abilities but no easy way to make a choice from the rows.
Describe the solution you'd like
I would like to be able to pass a grid (or even a table) into the selection prompt so that I may have a cursor on the grid to make a selection from those rows as options.
Describe alternatives you've considered
I have tried doing the two separately: display the grid, then have a selection below it. Because the padding will be difficult to get to match the grid, the alignment is wrong. Further, the data is redundant. I don't want to have to scroll through a list of data that I'm already looking at in a grid.
Another possibility is using numbers or IDs to distinguish each option. This isn't very feasible though when there are too many options to fit on a single screen. The scrolling functionality applied to a grid would be very helpful.
Something else I've tried: typing in a selection based on only one column of the grid. This isn't very feasible for the same reason I want to display as a grid: no one single column is guaranteed unique. I have to display multiple columns.
Additional context
What I am trying to do is simplify the updating of my DNS records through my name registrar's API. Here's a screenshot with some anonymized data:
As you can see, displaying the data as a grid is perfect, but I would really like the selection cursor to just be on the grid itself, not as a separate option below.
Please upvote 👍 this issue if you are interested in it.
The text was updated successfully, but these errors were encountered:
I did a quick and dirty TableSelectionPrompt project yesterday but I had to copy a lot of internal files from the main project, it would probably be better to generalize a bit the existing SelectionPrompt/MultiSelectionPrompt and avoid duplicating that much code. Here's my project: https://github.com/guillaume86/spectre.console/tree/main/src/Spectre.Console.GridPrompt it's just some demo code, a proper merge request would be completely different.
@patriksvensson would you consider a PR to generalize SelectionPrompt/MultiSelectionPrompt from list to grid? The API could remain backward compatible.
Is your feature request related to a problem? Please describe.
The selection prompt has a converter for displaying, but it's dependent on the developer to handle padding, etc. for options. The grid and table constructs have excellent padding and display abilities but no easy way to make a choice from the rows.
Describe the solution you'd like
I would like to be able to pass a grid (or even a table) into the selection prompt so that I may have a cursor on the grid to make a selection from those rows as options.
Describe alternatives you've considered
I have tried doing the two separately: display the grid, then have a selection below it. Because the padding will be difficult to get to match the grid, the alignment is wrong. Further, the data is redundant. I don't want to have to scroll through a list of data that I'm already looking at in a grid.
Another possibility is using numbers or IDs to distinguish each option. This isn't very feasible though when there are too many options to fit on a single screen. The scrolling functionality applied to a grid would be very helpful.
Something else I've tried: typing in a selection based on only one column of the grid. This isn't very feasible for the same reason I want to display as a grid: no one single column is guaranteed unique. I have to display multiple columns.
Additional context
What I am trying to do is simplify the updating of my DNS records through my name registrar's API. Here's a screenshot with some anonymized data:
As you can see, displaying the data as a grid is perfect, but I would really like the selection cursor to just be on the grid itself, not as a separate option below.
Please upvote 👍 this issue if you are interested in it.
The text was updated successfully, but these errors were encountered: