Class PopoverBuilder
Builds the shared "box" classes (background, border, rounded corners, shadow) for every popover panel (date/time/color picker panels) from TwOverlayTheme. Mirrors GetSurfaceClasses(DialogMaxWidth?, bool, bool, Rounded?, Shadow?, string?)'s instance-override/theme-default/global-default resolution, so popovers and the modal dialog behave the same way instead of the popover family having no such override tier at all. Also builds tooltip classes, since a tooltip is a small popover.
public class PopoverBuilder
- Inheritance
-
PopoverBuilder
- Inherited Members
Constructors
PopoverBuilder(TwBlazorOptions, RoundedBuilder, ShadowBuilder)
Builds the shared "box" classes (background, border, rounded corners, shadow) for every popover panel (date/time/color picker panels) from TwOverlayTheme. Mirrors GetSurfaceClasses(DialogMaxWidth?, bool, bool, Rounded?, Shadow?, string?)'s instance-override/theme-default/global-default resolution, so popovers and the modal dialog behave the same way instead of the popover family having no such override tier at all. Also builds tooltip classes, since a tooltip is a small popover.
public PopoverBuilder(TwBlazorOptions options, RoundedBuilder roundedBuilder, ShadowBuilder shadowBuilder)
Parameters
optionsTwBlazorOptionsroundedBuilderRoundedBuildershadowBuilderShadowBuilder
Methods
GetSurfaceClasses(Rounded?, Shadow?, string?)
Gets the classes for a popover panel's surface (background, border, rounded corners, shadow).
public string GetSurfaceClasses(Rounded? rounded, Shadow? shadow, string? customClass = null)
Parameters
roundedRounded?Instance-level rounded override.
shadowShadow?Instance-level shadow override.
customClassstringAdditional custom classes to append.
Returns
Remarks
GetTooltipArrowClasses(TooltipPlacement)
Gets the classes for a tooltip's arrow: the shared arrow shape, the popover fill and border so it
continues the bubble's outline, and the offset for the bubble's placement.
public string GetTooltipArrowClasses(TooltipPlacement placement)
Parameters
placementTooltipPlacementWhich side of the control the bubble appears on.
Returns
GetTooltipClasses(bool, TooltipPlacement, Rounded?, Shadow?, string?)
Gets the classes for a tooltip bubble: the shared tooltip layout/visibility classes on top of the popover surface from GetSurfaceClasses(Rounded?, Shadow?, string?), so tooltips match popover panels.
public string GetTooltipClasses(bool dismissed, TooltipPlacement placement = TooltipPlacement.Top, Rounded? rounded = null, Shadow? shadow = null, string? customClass = null)
Parameters
dismissedboolWhether the user has dismissed the tooltip (Escape), which hides it regardless of hover or focus until they leave the control.
placementTooltipPlacementWhich side of the control the bubble appears on.
roundedRounded?Instance-level rounded override.
shadowShadow?Instance-level shadow override.
customClassstringAdditional custom classes to append to the bubble.
Returns
GetTooltipWrapperClasses()
Gets the classes for the element wrapping a control and its tooltip bubble.
public string GetTooltipWrapperClasses()