HtmlForgeX

API Reference

Class

EmailMetricTile

Namespace HtmlForgeX.Email
Assembly HtmlForgeX.Email
Base Element
Implements

Small metric tile (icon + value + label) designed for email client compatibility. Useful for dashboards, repo digests and summary sections.

Inheritance

Constructors

Methods

public override String ToString() #
Returns: String
public EmailMetricTile WithAlignment(Alignment alignment) #
Returns: EmailMetricTile

Sets alignment.

Parameters

alignment HtmlForgeX.Email.Alignment requiredposition: 0
public EmailMetricTile WithDelta(String delta, EmailTrendDirection direction = Neutral) #
Returns: EmailMetricTile

Sets delta.

Parameters

delta System.String requiredposition: 0
direction HtmlForgeX.Email.EmailTrendDirection = Neutral optionalposition: 1
public EmailMetricTile WithDeltaColor(String color) #
Returns: EmailMetricTile

Sets delta color override.

Parameters

color System.String requiredposition: 0
public EmailMetricTile WithHref(String href) #
Returns: EmailMetricTile

Sets link.

Parameters

href System.String requiredposition: 0
public EmailMetricTile WithIcon(String icon) #
Returns: EmailMetricTile

Sets the icon.

Parameters

icon System.String requiredposition: 0
public EmailMetricTile WithSubtitle(String subtitle) #
Returns: EmailMetricTile

Sets subtitle.

Parameters

subtitle System.String requiredposition: 0
public EmailMetricTile WithValue(String value, String label) #
Returns: EmailMetricTile

Sets value and label.

Parameters

value System.String requiredposition: 0
label System.String requiredposition: 1

Properties

public String Icon { get; set; } #

Optional icon (emoji or short text).

public String Value { get; set; } #

Metric value (e.g. "128").

public String Label { get; set; } #

Metric label (e.g. "Commits").

public String Subtitle { get; set; } #

Optional secondary label.

public String Delta { get; set; } #

Optional delta (trend) line shown under the subtitle/label.

public EmailTrendDirection DeltaDirection { get; set; } #

Delta direction used to pick arrow and default color.

public String DeltaColor { get; set; } #

Delta color override (when set).

public String DeltaFontSize { get; set; } #

Delta font size.

public String Href { get; set; } #

Optional link for the entire tile.

public String TextAlign { get; set; } #

Text alignment.

public String ValueColor { get; set; } #

Value color.

public String LabelColor { get; set; } #

Label color.

public String IconFontSize { get; set; } #

Icon size.

public String ValueFontSize { get; set; } #

Value font size.

public String LabelFontSize { get; set; } #

Label font size.

public String SubtitleFontSize { get; set; } #

Optional subtitle font size.