-
Notifications
You must be signed in to change notification settings - Fork 133
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add Table layout for Multiselect/Select #83
Comments
As an alternative I suppose it would also be reasonable to use the Description as the header. |
Hey! Thank you so much for creating this issue! We definitely want to introduce new field types in the future and table may be one of them. I'm just going to consolidate to clean up some issues and close this in favour of #61 to have all the ideas in one place. |
Hey All, I've been looking into this library and the other projects bubbletea etc.
I've often had a need for a select or multiselect input for CLIs that can display table data as the options.
Ideally with a
It is possible to use the existing multiSelect and format the option value with spacing between fields however there is no header option, and it would also need an overridable filter function.
Extending on the work in #81 I have put together an example input that is styled as a table.
PR in my fork is here JoshuaWilkes#1
To pull this off I borrowed from this example https://github.com/charmbracelet/bubbletea/blob/master/examples/table/main.go
And I had to drop the generics support so the the Option could be replaced with a Row which has a string slice
[]string{}
for each column value.Is this something you would consider adding in?
Thanks!
The text was updated successfully, but these errors were encountered: