Skip to content
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

Update table documentation example demonstrating cell borders #1502

Open
camelback opened this issue Mar 29, 2024 · 0 comments
Open

Update table documentation example demonstrating cell borders #1502

camelback opened this issue Mar 29, 2024 · 0 comments

Comments

@camelback
Copy link

camelback commented Mar 29, 2024

Is your feature request related to a problem? Please describe.

No, this is a documentation only update that I believe deserves in the main table example based on the assumption that table cells should have borders. Of course, this is my personal opinion, but I believe the example table demonstrating the capability is warranted.

Describe the solution you'd like

Update ../docs/input/widgets/table.md:

// Create a table 
var table = new Table(); 

// Add table cell borders
table.ShowRowSeparators();

// Add some columns 
table.AddColumn("Foo"); 
table.AddColumn(new TableColumn("Bar").Centered()); 

// Add some rows
table.AddRow("Baz", "[green]Qux[/]");
table.AddRow(new Markup("[blue]Corgi[/]"), new Panel("Waldo"));

// Render the table to the console
AnsiConsole.Write(table);

Additional context

An update image should also be included to reflect how the borders are rendered.


Please upvote 👍 this issue if you are interested in it.

@camelback camelback changed the title Update table documentation example to demonstrating cell borders Update table documentation example demonstrating cell borders Mar 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Todo 🕑
Development

No branches or pull requests

1 participant