Class TwTableTheme
- Namespace
- TwBlazor.Configuration.Components
- Assembly
- TwBlazor.dll
Theme configuration for table components (TwTable and TwDataTable<TItem>). Override any property to customize table styles globally.
[ExcludeFromCodeCoverage]
public class TwTableTheme
- Inheritance
-
TwTableTheme
- Inherited Members
Remarks
TwDataTable<TItem> does not define its own table theme - its
auto-generated header row (used when rendering Columns) reuses Header so both
components stay visually consistent from a single configuration point.
Constructors
TwTableTheme()
public TwTableTheme()
Properties
Base
Gets or sets the base classes applied to the table element itself.
public required string Base { get; set; }
Property Value
Body
Gets or sets the base background classes applied to the table body.
public required string Body { get; set; }
Property Value
BodyCellPadding
Gets or sets the padding classes for an auto-generated body cell.
public required string BodyCellPadding { get; set; }
Property Value
BodyHoverable
Gets or sets the classes applied to the table body when its Hoverable parameter is true.
public required string BodyHoverable { get; set; }
Property Value
BodyStriped
Gets or sets the classes applied to the table body when its Striped parameter is true.
public required string BodyStriped { get; set; }
Property Value
Bordered
Gets or sets the classes applied to the outer wrapping <div> when the table's
NoBorder parameter is false (the default) - the container's border and shadow.
Rounding and clipping live on that same wrapper regardless of NoBorder, via
Rounded, so the table's corners (including the
header's background) are always clipped cleanly instead of the raw square corners a
<table> element renders even with a rounded class applied directly to it.
public required string Bordered { get; set; }
Property Value
ContainerClip
Gets or sets the classes that clip the outer container to its rounded corners.
public required string ContainerClip { get; set; }
Property Value
EmptyState
Gets or sets the classes for the "no data" row shown when there are no rows to display.
public required string EmptyState { get; set; }
Property Value
Footer
Gets or sets the classes applied to the table footer when the table's Bordered parameter
is true - a single divider separating it from the body.
public required string Footer { get; set; }
Property Value
Header
Gets or sets the classes applied to the table header, controlling its background, text colour, typography, and the permanent divider separating it from the body.
public required string Header { get; set; }
Property Value
HeaderCellPadding
Gets or sets the padding classes for an auto-generated column header cell.
public required string HeaderCellPadding { get; set; }
Property Value
RowDivider
Gets or sets the classes applied to the table body when its Bordered parameter is true -
a single hairline between consecutive rows (e.g. via divide-y). Deliberately not a full
per-cell grid: a border around every cell reads as a busy, dated spreadsheet grid, especially
combined with Striped - a thin row divider gives the same "this is bordered" affordance
without the clash.
public required string RowDivider { get; set; }
Property Value
SearchColumn
Gets or sets the width classes for TwDataTable<TItem>'s search
field column, when Searchable is enabled.
public required string SearchColumn { get; set; }
Property Value
SortIcon
Gets or sets the color classes for an auto-generated column header's sort icon.
public required string SortIcon { get; set; }
Property Value
Wrapper
Gets or sets the classes for the scrollable wrapper around the table element.
public required string Wrapper { get; set; }