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

add support for tabular display of IEnumerable<T> #3086

Closed
jonsequitur opened this issue Jul 13, 2023 · 0 comments
Closed

add support for tabular display of IEnumerable<T> #3086

jonsequitur opened this issue Jul 13, 2023 · 0 comments
Labels
Area-Formatting Data and object formatting as HTML and plaintext enhancement New feature or request

Comments

@jonsequitur
Copy link
Contributor

jonsequitur commented Jul 13, 2023

Proposal: Add a DisplayTable extension method for IEnumerable<T> that will produce a tabular display instead of a treeview-style display.

A number of people have asked for the older table formatter to be made available again for sequences.

#3081
#3085

In #3081 I proposed a workaround by first calling ToTabularDataResource, which has a custom formatter that provides a tabular output:

image

The ergonomics could be improved though.

In this comment, @scottstephens made a suggestion for an API that would sit alongside Display and not require a separate using using directive. This will make it more discoverable and decouple it from the TabularDataResource details, which are intended more for serialization than display.

@jonsequitur jonsequitur added enhancement New feature or request Area-Formatting Data and object formatting as HTML and plaintext labels Jul 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area-Formatting Data and object formatting as HTML and plaintext enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant