Skip to content
Discussion options

You must be logged in to vote

@orjan I haven't compiled the example below, but something like this should work.
Instead of Rows your could of course use any IRenderable.

// Create table
var table = new Table();
table.AddColumn("Key");
table.AddColumn("Value");

// Add a row with key/value
table.AddRow("Foo", "Bar");

// Add a new row with multiple rows as values
table.AddRow(
	new Text("Qux"), 
	new Rows(
		new Text("First"),
		new Text("Second")));

// Render table
console.Write(table);

Replies: 2 comments 1 reply

Comment options

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

Answer selected by orjan
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
2 participants