HtmlForgeX

API Reference

Class

TablerStarRating

Namespace HtmlForgeX
Assembly HtmlForgeX
Base Element

Interactive star rating control using star-rating.js.

Inheritance

Constructors

public TablerStarRating(String id) #

Initializes the control with the specified identifier.

Parameters

id System.String requiredposition: 0

Methods

public TablerStarRating MaxStars(Int32 stars) #
Returns: TablerStarRating

Sets the maximum number of stars.

Parameters

stars System.Int32 requiredposition: 0
public TablerStarRating OnChange(String jsFunction) #
Returns: TablerStarRating
EditorBrowsable(2)

Registers a JavaScript function (by global name) to call when the rating changes. Prefer standard form submission or server-driven behavior for 0-JS usage.

Parameters

jsFunction System.String requiredposition: 0
RegisterLibraries() #
public override String ToString() #
Returns: String
public TablerStarRating Value(Double value) #
Returns: TablerStarRating

Sets the initial rating value.

Parameters

value System.Double requiredposition: 0