HtmlForgeX

API Reference

Class

TablerProgressBar

Namespace HtmlForgeX
Assembly HtmlForgeX
Base Element

Represents a progress bar that can contain multiple items.

Inheritance

Constructors

public TablerProgressBar(params TablerProgressBarType[] types) #

Initializes a new instance of the TablerProgressBar class with optional progress bar types.

Parameters

types HtmlForgeX.TablerProgressBarType[] requiredposition: 0
Additional CSS types.

Methods

AddItem 2 overloads
public TablerProgressBarItem AddItem(TablerColor background, Int32 progress, String label) #
Returns: TablerProgressBarItem

Adds a progress item to the bar and returns the created item.

Parameters

background HtmlForgeX.TablerColor requiredposition: 0
progress System.Int32 requiredposition: 1
label System.String requiredposition: 2
public TablerProgressBarItem AddItem(TablerProgressBarItem item) #
Returns: TablerProgressBarItem

Adds a preconstructed progress item to the bar.

Parameters

item HtmlForgeX.TablerProgressBarItem requiredposition: 0
The item to add.

Returns

The created TablerProgressBarItem.

public TablerProgressBar Item(TablerColor background, Int32 progress, String label) #
Returns: TablerProgressBar

Adds a progress item to the bar.

Parameters

background HtmlForgeX.TablerColor requiredposition: 0
Background color of the item.
progress System.Int32 requiredposition: 1
Progress percentage.
label System.String requiredposition: 2
Label text.

Returns

The current TablerProgressBar instance.

public TablerProgressBar Margin(TablerMargin margin) #
Returns: TablerProgressBar

Initializes or configures Margin.

Parameters

margin HtmlForgeX.TablerMargin requiredposition: 0
public TablerProgressBar Padding(TablerPadding padding) #
Returns: TablerProgressBar

Initializes or configures Padding.

Parameters

padding HtmlForgeX.TablerPadding requiredposition: 0
RegisterLibraries() #
public override String ToString() #
Returns: String

Returns the HTML representation of the progress bar.

Returns

A string containing the HTML markup.