Table of Contents

Class TwPopoverTheme

Namespace
TwBlazor.Configuration.Components
Assembly
TwBlazor.dll

Shared "box" styling (background, border, rounded corners, shadow) for every popover panel (TwDatePicker, TwDateRangePicker, TwDateTimeRangePicker, TwTimePicker, TwTimeRangePicker, TwColorPicker), reached through Popover.

[ExcludeFromCodeCoverage]
public class TwPopoverTheme
Inheritance
TwPopoverTheme
Inherited Members

Remarks

Width/height/max-height that genuinely varies per surface (e.g. the date picker's dual-month layout) stays on that component's own theme class - see PanelWidth. Sizing that was just a single leftover literal with nothing else to vary (TimeRangeSize, ColorSize) is consolidated here rather than getting its own one-property theme class.

Constructors

TwPopoverTheme()

public TwPopoverTheme()

Properties

Background

Gets or sets the background for every popover panel surface (date/time/color picker panels).

public required string Background { get; set; }

Property Value

string

Border

Gets or sets the border for every popover panel surface.

public required string Border { get; set; }

Property Value

string

ColorSize

Gets or sets the width/padding classes (plus the tw-color-picker-dialog marker class tests select on) for TwColorPicker's popover surface.

public required string ColorSize { get; set; }

Property Value

string

Rounded

Gets or sets the default border radius for popover panels.

public Rounded? Rounded { get; set; }

Property Value

Rounded?

Remarks

If not set, falls back to global DefaultRounded. Individual pickers can still override this via their own Rounded parameter. Mirrors Rounded.

Shadow

Gets or sets the default shadow level for popover panels.

public Shadow? Shadow { get; set; }

Property Value

Shadow?

Remarks

If not set, falls back to global DefaultShadow. Individual pickers can still override this via their own Shadow parameter. Mirrors Shadow.

TimeRangeSize

Gets or sets the width/padding classes for TwTimeRangePicker's popover surface.

public required string TimeRangeSize { get; set; }

Property Value

string