Table of Contents

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

ActionsCell

Gets or sets the classes for TwDataTable<TItem>'s Actions column, which holds each row's Edit button, or its Save and Cancel buttons while it is edited.

public string ActionsCell { get; set; }

Property Value

string

Base

Gets or sets the base classes applied to the table element itself.

public required string Base { get; set; }

Property Value

string

Body

Gets or sets the base background classes applied to the table body.

public required string Body { get; set; }

Property Value

string

BodyCellPadding

Gets or sets the padding classes for an auto-generated body cell.

public required string BodyCellPadding { get; set; }

Property Value

string

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

string

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

string

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

string

ContainerClip

Gets or sets the classes that clip the outer container to its rounded corners.

public required string ContainerClip { get; set; }

Property Value

string

EditingRow

Gets or sets the classes for the row being edited, which set it apart from the rows around it.

public string EditingRow { get; set; }

Property Value

string

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

string

FilterHeading

Gets or sets the classes for the heading at the top of a column filter.

public string FilterHeading { get; set; }

Property Value

string

FilterPanel

Gets or sets the classes for TwDataTable<TItem>'s column filter, a dialog positioned under the column's filter button. The filter script places it with fixed positioning.

public string FilterPanel { get; set; }

Property Value

string

FixedLayout

Gets or sets the classes applied to the table element when the table's FixedLayout parameter is true (e.g. table-fixed).

public string FixedLayout { get; set; }

Property Value

string

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

string

GroupByColumn

Gets or sets the width classes for TwDataTable<TItem>'s Group by list.

public string GroupByColumn { get; set; }

Property Value

string

GroupCount

Gets or sets the classes for the row count beside a group's name.

public string GroupCount { get; set; }

Property Value

string

GroupRow

Gets or sets the classes for the header row at the top of each group when the rows are grouped.

public string GroupRow { get; set; }

Property Value

string

GroupToggle

Gets or sets the classes for the button in a group header that expands or collapses the group, including its focus ring.

public string GroupToggle { get; set; }

Property Value

string

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

string

HeaderCellPadding

Gets or sets the padding classes for an auto-generated column header cell.

public required string HeaderCellPadding { get; set; }

Property Value

string

LoadingCell

Gets or sets the classes for the cell shown in place of a row while TwDataTable<TItem> loads it.

public string LoadingCell { get; set; }

Property Value

string

ResizeHandle

Gets or sets the classes for the separator on a resizable column's border, which a person drags or focuses and moves with the arrow keys to resize the column (ResizableColumns). The resize script positions it, so it needs absolute positioning; centre it on the border, give it a column resize cursor and a visible focus state.

public string ResizeHandle { get; set; }

Property Value

string

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

string

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

string

SortIcon

Gets or sets the color classes for an auto-generated column header's sort icon.

public required string SortIcon { get; set; }

Property Value

string

StickyHeader

Gets or sets the classes applied to the table header when the table's StickyHeader parameter is true, which keep it at the top of the scrolling table (e.g. sticky top-0 z-10).

public string StickyHeader { get; set; }

Property Value

string

Wrapper

Gets or sets the classes for the scrollable wrapper around the table element.

public required string Wrapper { get; set; }

Property Value

string