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) and the TwPopover component, 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
Border
Gets or sets the border for every popover panel surface.
public required string Border { get; set; }
Property Value
CloseButton
Gets or sets the classes for a TwPopover's close button, placed in the panel's top corner.
public string CloseButton { get; set; }
Property Value
Remarks
Optional, so themes written before TwPopover keep working.
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
Panel
Gets or sets the layout classes for a TwPopover's panel: its stacking order, width, padding and text. The panel's box comes from Background and Border.
public string Panel { get; set; }
Property Value
Remarks
Optional, so themes written before TwPopover keep working.
Root
Gets or sets the classes for the element that wraps a TwPopover's trigger and panel.
public string Root { get; set; }
Property Value
Remarks
Optional, so themes written before TwPopover keep working.
Rounded
Gets or sets the default border radius for popover panels.
public Rounded? Rounded { get; set; }
Property Value
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
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
Title
Gets or sets the classes for a TwPopover's title.
public string Title { get; set; }
Property Value
Remarks
Optional, so themes written before TwPopover keep working.