Table of Contents

Class TwGridTheme

Namespace
TwBlazor.Configuration.Components
Assembly
TwBlazor.dll

Theme configuration for TwGrid and TwGridItem. Override any property to customize grid layout styles globally.

[ExcludeFromCodeCoverage]
public class TwGridTheme
Inheritance
TwGridTheme
Inherited Members

Remarks

Column and row counts, spans, start lines, auto flow and cell alignment come from the shared TwBlazorGrid utilities, and the numeric gaps from TwBlazorSpacing.

Constructors

TwGridTheme()

public TwGridTheme()

Properties

AutoFill

Gets or sets the columns used with MinColWidth and AutoFill: as many columns as fit, keeping empty tracks so a short last row does not stretch. The minimum width is read from the --tw-grid-min custom property.

public required string AutoFill { get; set; }

Property Value

string

AutoFit

Gets or sets the columns used with MinColWidth: as many columns as fit, stretched to share the row. The minimum width is read from the --tw-grid-min custom property.

public required string AutoFit { get; set; }

Property Value

string

Base

Gets or sets the classes for a block-level grid.

public required string Base { get; set; }

Property Value

string

Inline

Gets or sets the classes for an inline grid, which sits in a line of text.

public required string Inline { get; set; }

Property Value

string

Item

Gets or sets the classes every TwGridItem has. By default it lets an item shrink below its content, so a long word or a wide child cannot stretch its column.

public required string Item { get; set; }

Property Value

string