HtmlForgeX

API Reference

Class

TablerCountdown

Namespace HtmlForgeX
Assembly HtmlForgeX
Base Element

Renders a countdown timer that updates every second and triggers a callback when finished.

Inheritance

Constructors

Methods

public TablerCountdown EndTime(DateTime endTime) #
Returns: TablerCountdown

Sets the end time for the countdown.

Parameters

endTime System.DateTime requiredposition: 0
public TablerCountdown Format(String format) #
Returns: TablerCountdown

Sets the display format using tokens DD, HH, MM and SS.

Parameters

format System.String requiredposition: 0
public TablerCountdown OnComplete(String callback) #
Returns: TablerCountdown
EditorBrowsable(2)

Specifies a JavaScript callback to invoke when the countdown completes. Prefer String) for 0-JS usage.

Parameters

callback System.String requiredposition: 0
public TablerCountdown OnCompleteDispatchEvent(String eventName) #
Returns: TablerCountdown

Dispatches a custom browser event on the countdown element when the timer reaches 0. This is a safe, 0-JS-by-default integration point for dynamic apps.

Parameters

eventName System.String requiredposition: 0
RegisterLibraries() #
public override String ToString() #
Returns: String