We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
It seems table headers are blank when the passed slice has no rows.
Expected: Headers would be set based on the slice type (or have an API for setting them explicitly).
Initialize an empty slice of the intended type and render a Table.
For ref, the command I ran: core run -auto-update-interval 1s web
core run -auto-update-interval 1s web
package main import ( "cogentcore.org/core/core" ) func main() { b := core.NewBody() type item struct { Name string IP string } tbl := core.NewTable(b) var items []item // same behavior with items := []item{} tbl.SetSlice(&items) b.RunMainWindow() }
No response
Web
The text was updated successfully, but these errors were encountered:
Thank you for reporting this. I can reproduce this and we will work on fixing this soon.
Sorry, something went wrong.
rcoreilly
No branches or pull requests
Describe the bug
It seems table headers are blank when the passed slice has no rows.
Expected: Headers would be set based on the slice type (or have an API for setting them explicitly).
How to reproduce
Initialize an empty slice of the intended type and render a Table.
For ref, the command I ran:
core run -auto-update-interval 1s web
Example code
Relevant output
No response
Platform
Web
The text was updated successfully, but these errors were encountered: