SpectreTable

Class

For examples and usage details, see the component documentation.

View SpectreTable Component
Namespace: RazorConsole.Components
Assembly: RazorConsole.Core

Definition

public class SpectreTable : ComponentBase, IComponent, IHandleEvent, IHandleAfterRender

Constructors

1
NameTypeDescription
SpectreTable()Constructor

Properties

8
NameTypeDescription
Appearance
BorderTableBorderStyle of the table border. See TableBorder for available styles like Rounded, Square, and Minimal.
BorderColorColorColor of the table border. Default is White.
WidthNullable<Int32>Width of the table in characters. If null or less than 1, automatically determined by content.
Common
ChildContentRenderFragmentRenders a formatted table using Spectre.Console's Table renderable.
TitleStringTitle displayed above the table. If null or empty, no title is shown.
Other
AdditionalAttributesIReadOnlyDictionary<String, Object>Additional HTML attributes to apply to the table element.
ExpandBooleanWhether the table should expand to fill available space. Default is false .
ShowHeadersBooleanWhether table headers should be displayed. Default is true .

Methods

1
NameTypeDescription
BuildRenderTree(RenderTreeBuilder)()Method