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

[Enhancement] Make formatting for Table.From() path easier #29

Open
douglasg14b opened this issue Jun 27, 2022 · 0 comments
Open

[Enhancement] Make formatting for Table.From() path easier #29

douglasg14b opened this issue Jun 27, 2022 · 0 comments

Comments

@douglasg14b
Copy link
Owner

douglasg14b commented Jun 27, 2022

This issue highlighted that this path may be awkward: #28

            var table = new Table(TableConfig.Unicode());
            table.From(statistics.ToArray());
            
            // Enable inner formatting for all columns.
            foreach (var header in table.Headers)
                header.RowsFormat.InnerFormatting = true;
            
            Console.Write(table.ToString());   

Perhaps the From() method could accept some parameters that apply to all columns?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant