HtmlForgeX

API Reference

Class

EmailEmojiRating

Namespace HtmlForgeX.Email
Assembly HtmlForgeX.Email
Base Element
Implements

Compact email-safe emoji (or text) rating selector. Renders as a grid of square options. Each option is a link (href) that can be used for surveys/CSAT/NPS-like feedback.

Inheritance

Constructors

Methods

AddOption 2 overloads
public EmailEmojiRating AddOption(String label, String href, String caption = "") #
Returns: EmailEmojiRating

Adds an option.

Parameters

label System.String requiredposition: 0
href System.String requiredposition: 1
caption System.String = "" optionalposition: 2
public EmailEmojiRating AddOption(Action<EmailEmojiRatingOption> configure) #
Returns: EmailEmojiRating

Adds an option configured via callback.

Parameters

configure System.Action{HtmlForgeX.Email.EmailEmojiRatingOption} requiredposition: 0
public override String ToString() #
Returns: String

Properties

public List<EmailEmojiRatingOption> Options { get; } #

Rating options.

public Int32 Columns { get; set; } #

Number of columns (options per row).

public Int32 OptionSizePx { get; set; } #

Option square size in pixels.

public Int32 FontSizePx { get; set; } #

Option font size in pixels.

public Int32 GapPx { get; set; } #

Gap between options in pixels.

public String BackgroundColor { get; set; } #

Background color used for options.

public String BorderColor { get; set; } #

Border color used for options.

public String TextColor { get; set; } #

Text color used for non-emoji options.

public String CaptionColor { get; set; } #

Caption color shown under each option when enabled.

public String BorderRadius { get; set; } #

Border radius for option buttons.

public Boolean ShowCaptions { get; set; } #

Whether to show captions under each option.