HtmlForgeX

API Reference

Class

TablerRoleBadge

Namespace HtmlForgeX
Assembly HtmlForgeX
Base Element
Modifiers sealed

Opinionated role badge helper (maps common role names to consistent Tabler badge colors).

Inheritance

Constructors

public TablerRoleBadge(String role) #

Creates a role badge.

Parameters

role System.String requiredposition: 0

Methods

RegisterLibraries() #
public TablerRoleBadge Role(String role) #
Returns: TablerRoleBadge

Sets the role text (and updates default color mapping when enabled).

Parameters

role System.String requiredposition: 0
public TablerRoleBadge Settings(Action<RoleBadgeSettings> configure) #
Returns: TablerRoleBadge

Groups less-common options under a single fluent entry point.

Parameters

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