HtmlForgeX

API Reference

Class

TablerProgressBarItem

Namespace HtmlForgeX
Assembly HtmlForgeX
Base Element

Represents a single item within a progress bar.

Inheritance

Constructors

TablerProgressBarItem 2 overloads
public TablerProgressBarItem(TablerColor background, Int32 progress) #

Initializes a new instance of the TablerProgressBarItem class.

Parameters

background HtmlForgeX.TablerColor requiredposition: 0
Background color for the progress bar segment.
progress System.Int32 requiredposition: 1
Progress percentage.
public TablerProgressBarItem(TablerColor background, Int32 progress, String label, Nullable<Int32> valueNow = null, Nullable<Int32> valueMin = null, Nullable<Int32> valueMax = null) #

Initializes a new instance of the TablerProgressBarItem class with additional ARIA attributes.

Parameters

background HtmlForgeX.TablerColor requiredposition: 0
Background color for the progress bar segment.
progress System.Int32 requiredposition: 1
Progress percentage.
label System.String requiredposition: 2
Accessible label for the item.
valueNow System.Nullable{System.Int32} = null optionalposition: 3
Optional current value.
valueMin System.Nullable{System.Int32} = null optionalposition: 4
Optional minimum value.
valueMax System.Nullable{System.Int32} = null optionalposition: 5
Optional maximum value.

Methods

public TablerProgressBarItem Label(String label) #
Returns: TablerProgressBarItem

Sets the accessible label for the progress segment.

Parameters

label System.String requiredposition: 0
Label text.

Returns

The current TablerProgressBarItem instance.

public override String ToString() #
Returns: String

Returns the HTML representation of the progress bar item.

Returns

A string containing the HTML markup.