SpectreTable
ClassFor examples and usage details, see the component documentation.
View SpectreTable ComponentNamespace:
RazorConsole.ComponentsAssembly:
RazorConsole.CoreDefinition
public class SpectreTable : ComponentBase, IComponent, IHandleEvent, IHandleAfterRenderConstructors
1| Name | Type | Description |
|---|---|---|
SpectreTable() | Constructor | — |
Properties
8| Name | Type | Description |
|---|---|---|
Appearance | ||
Border | TableBorder | Style of the table border. See TableBorder for available styles like Rounded, Square, and Minimal. |
BorderColor | Color | Color of the table border. Default is White. |
Width | Nullable<Int32> | Width of the table in characters. If null or less than 1, automatically determined by content. |
Common | ||
ChildContent | RenderFragment | Renders a formatted table using Spectre.Console's Table renderable. |
Title | String | Title displayed above the table. If null or empty, no title is shown. |
Other | ||
AdditionalAttributes | IReadOnlyDictionary<String, Object> | Additional HTML attributes to apply to the table element. |
Expand | Boolean | Whether the table should expand to fill available space. Default is false . |
ShowHeaders | Boolean | Whether table headers should be displayed. Default is true . |
Methods
1| Name | Type | Description |
|---|---|---|
BuildRenderTree(RenderTreeBuilder)() | Method | — |