HtmlForgeX

API Reference

Class

EmailScheduleCard

Namespace HtmlForgeX.Email
Assembly HtmlForgeX.Email
Base Element
Implements
Modifiers sealed

A high-level schedule/agenda card that composes a header, date strip and schedule list. Designed to reduce boilerplate for common "agenda" emails without requiring HTML/CSS.

Inheritance

Constructors

Methods

public EmailScheduleCard AddDay(String number, String label, Boolean selected = false, String href = null) #
Returns: EmailScheduleCard

Adds a day to the date strip.

Parameters

number System.String requiredposition: 0
label System.String requiredposition: 1
selected System.Boolean = false optionalposition: 2
href System.String = null optionalposition: 3
public EmailScheduleCard AddEvent(Action<EmailScheduleEvent> configure) #
Returns: EmailScheduleCard

Adds an event to the schedule list.

Parameters

configure System.Action{HtmlForgeX.Email.EmailScheduleEvent} requiredposition: 0
public EmailScheduleCard ConfigureDateStrip(Action<EmailDateStrip> configure) #
Returns: EmailScheduleCard

Configures the date strip.

Parameters

configure System.Action{HtmlForgeX.Email.EmailDateStrip} requiredposition: 0
public EmailScheduleCard ConfigureSchedule(Action<EmailScheduleList> configure) #
Returns: EmailScheduleCard

Configures the schedule list.

Parameters

configure System.Action{HtmlForgeX.Email.EmailScheduleList} requiredposition: 0
public override String ToString() #
Returns: String
public EmailScheduleCard WithButton(String text, String href, EmailButtonStyle style = Primary, EmailButtonSize size = Medium, Boolean fullWidth = true) #
Returns: EmailScheduleCard

Sets CTA button.

Parameters

text System.String requiredposition: 0
href System.String requiredposition: 1
style HtmlForgeX.Email.EmailButtonStyle = Primary optionalposition: 2
size HtmlForgeX.Email.EmailButtonSize = Medium optionalposition: 3
fullWidth System.Boolean = true optionalposition: 4
public EmailScheduleCard WithHeader(String title, String subtitle = "") #
Returns: EmailScheduleCard

Sets the header (title + subtitle).

Parameters

title System.String requiredposition: 0
subtitle System.String = "" optionalposition: 1
public EmailScheduleCard WithIcon(String icon) #
Returns: EmailScheduleCard

Sets the icon.

Parameters

icon System.String requiredposition: 0

Properties

public String Icon { get; set; } #

Optional icon shown next to the title (emoji or short text).

public String Title { get; set; } #

Card title.

public String Subtitle { get; set; } #

Optional subtitle under the title.

public String BackgroundColor { get; set; } #

Background color (theme-aware by default).

public String BorderColor { get; set; } #

Border color.

public String BorderRadius { get; set; } #

Border radius.

public String CardPadding { get; set; } #

Card padding.

public String TitleColor { get; set; } #

Title color (theme-aware by default).

public String SubtitleColor { get; set; } #

Subtitle color (theme-aware by default).

public Boolean UseSubtitleOpacity { get; set; } #

When true, renders subtitle with reduced opacity instead of a hard-coded muted color.

public Double SubtitleOpacity { get; set; } #

Opacity used for subtitle when UseSubtitleOpacity is enabled.

public EmailDateStrip DateStrip { get; } #

Date strip rendered under the header.

public EmailScheduleList Schedule { get; } #

Schedule list rendered under the date strip.

public String ButtonText { get; set; } #

Optional CTA button text.

public String ButtonHref { get; set; } #

Optional CTA button URL.

public EmailButtonStyle ButtonStyle { get; set; } #

CTA button style.

public EmailButtonSize ButtonSize { get; set; } #

CTA button size.

public Boolean FullWidthButton { get; set; } #

Whether to render the CTA button full width.