HtmlForgeX

API Reference

Class

EmailNpsRating

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

Net Promoter Score (NPS) 0–10 rating block rendered as an email-safe link grid.

Inheritance

Constructors

Methods

public override String ToString() #
Returns: String
public EmailNpsRating WithBaseHref(String baseHref, String parameterName = "score") #
Returns: EmailNpsRating

Sets base URL for link generation.

Parameters

baseHref System.String requiredposition: 0
parameterName System.String = "score" optionalposition: 1
public EmailNpsRating WithHrefFactory(Func<Int32, String> hrefFactory) #
Returns: EmailNpsRating

Overrides link generation per score.

Parameters

hrefFactory System.Func{System.Int32,System.String} requiredposition: 0

Properties

public String Question { get; set; } #

Optional question shown above the scale.

public String LowLabel { get; set; } #

Left label under the scale.

public String HighLabel { get; set; } #

Right label under the scale.

public String BaseHref { get; set; } #

Base URL used to generate option links. A query parameter is appended.

public String ParameterName { get; set; } #

Query parameter name used for the selected score.

public String OptionBackgroundColor { get; set; } #

Option button background (light mode). Dark mode is handled via dark-mode CSS hooks.

public String OptionBorderColor { get; set; } #

Option border color (light mode).

public String OptionTextColor { get; set; } #

Option text color (light mode).

public Int32 GapPx { get; set; } #

Gap between options.

public String OptionPadding { get; set; } #

Option padding.

public String OptionFontSize { get; set; } #

Option font size.