HtmlForgeX

API Reference

Class

EmailPricingPlan

Namespace HtmlForgeX.Email
Assembly HtmlForgeX.Email
Base Element
Implements

Single pricing plan card.

Inheritance

Constructors

Methods

AddFeature 2 overloads
public EmailPricingPlan AddFeature(String text, Boolean included = true) #
Returns: EmailPricingPlan

Adds a feature.

Parameters

text System.String requiredposition: 0
included System.Boolean = true optionalposition: 1
public EmailPricingPlan AddFeature(Action<EmailPricingFeature> configure) #
Returns: EmailPricingPlan

Adds a feature configured via callback.

Parameters

configure System.Action{HtmlForgeX.Email.EmailPricingFeature} requiredposition: 0
public override String ToString() #
Returns: String
public EmailPricingPlan WithBadge(String badgeText) #
Returns: EmailPricingPlan

Sets plan badge.

Parameters

badgeText System.String requiredposition: 0
public EmailPricingPlan WithButton(String text, String href, EmailButtonStyle style = Primary) #
Returns: EmailPricingPlan

Sets the CTA button.

Parameters

text System.String requiredposition: 0
href System.String requiredposition: 1
style HtmlForgeX.Email.EmailButtonStyle = Primary optionalposition: 2
public EmailPricingPlan WithDescription(String description) #
Returns: EmailPricingPlan

Sets plan description.

Parameters

description System.String requiredposition: 0
public EmailPricingPlan WithFeatured(Boolean featured = true) #
Returns: EmailPricingPlan

Marks plan as featured.

Parameters

featured System.Boolean = true optionalposition: 0
public EmailPricingPlan WithPrice(String price, String period = "") #
Returns: EmailPricingPlan

Sets plan price and period.

Parameters

price System.String requiredposition: 0
period System.String = "" optionalposition: 1
public EmailPricingPlan WithTitle(String title) #
Returns: EmailPricingPlan

Sets plan title.

Parameters

title System.String requiredposition: 0

Properties

public String Title { get; set; } #

Plan title.

public String Price { get; set; } #

Price value (e.g. "$19").

public String Period { get; set; } #

Price period (e.g. "per month").

public String Description { get; set; } #

Optional short description.

public String BadgeText { get; set; } #

Optional badge text (e.g. "Most popular").

public String ButtonText { get; set; } #

Plan CTA button text.

public String ButtonHref { get; set; } #

Plan CTA button URL.

public EmailButtonStyle ButtonStyle { get; set; } #

CTA button style.

public Boolean ButtonFullWidth { get; set; } #

Whether CTA button should be full width.

public List<EmailPricingFeature> Features { get; } #

Plan features.

public String BackgroundColor { get; set; } #

Background color.

public String BorderColor { get; set; } #

Border color.

public String BorderRadius { get; set; } #

Border radius.

public String CardPadding { get; set; } #

Card padding.

public String HeadingColor { get; set; } #

Text color for title/price.

public String MutedColor { get; set; } #

Muted/body text color.