Skip to content

Commit

Permalink
Update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
minhhungit committed Feb 13, 2021
1 parent 11818ed commit 257d5a5
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,13 +29,21 @@ var tableData = new List<List<object>>
new List<object>{ "Shad Decker", "Regional Director", "Edinburgh"},
};

// Simple table
Console.WriteLine();
Console.WriteLine("=> Simple example with default format:".ToUpper());
ConsoleTableBuilder
.From(tableData)
.ExportAndWriteLine();

Console.WriteLine();
Console.WriteLine("=> More example with existing format Alternative:".ToUpper());
ConsoleTableBuilder
.From(tableData)
.WithFormat(ConsoleTableBuilderFormat.Alternative)
.ExportAndWriteLine(TableAligntment.Center);

// Advanced table
Console.WriteLine();
Console.WriteLine("=> Advance example with custom format using CharMap:".ToUpper());
ConsoleTableBuilder
.From(tableData)
.WithTitle("CONTACTS ", ConsoleColor.Yellow, ConsoleColor.DarkGray)
Expand Down
Binary file modified wiki/Images/demo1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 257d5a5

Please sign in to comment.