Class MBShield
A shield similar to those from shield.io and used in GitHub. Implemented with HTML rather than SVG.
public class MBShield : ComponentFoundation, IComponent, IHandleEvent, IHandleAfterRender, IDisposable
- Inheritance
-
MBShield
- Implements
- Inherited Members
Constructors
MBShield()
public MBShield()
Properties
IconFoundry
The foundry to use for both icons.
IconFoundry="IconHelper.MIIcon()"
IconFoundry="IconHelper.FAIcon()"
IconFoundry="IconHelper.OIIcon()"
Overrides IconFoundryName
[Parameter]
public IMBIconFoundry? IconFoundry { get; set; }
Property Value
Label
Label (to the left).
[Parameter]
public string Label { get; set; }
Property Value
LabelClass
Extra CSS class for the Label.
[Parameter]
public string LabelClass { get; set; }
Property Value
LabelIcon
Icon for the Label.
[Parameter]
public string LabelIcon { get; set; }
Property Value
LabelStyle
HTML style attribute for the Label.
[Parameter]
public string LabelStyle { get; set; }
Property Value
ShieldType
The shield type, being Label (left part), Value (right part) or both.
[Parameter]
public MBShieldType ShieldType { get; set; }
Property Value
Value
Value (to the right)
[Parameter]
public string Value { get; set; }
Property Value
ValueClass
Extra CSS Class for the Value.
[Parameter]
public string ValueClass { get; set; }
Property Value
ValueIcon
Icon for the Value.
[Parameter]
public string ValueIcon { get; set; }
Property Value
ValueStyle
HTML style attribute for the Value.
[Parameter]
public string ValueStyle { get; set; }
Property Value
Methods
BuildRenderTree(RenderTreeBuilder)
Renders the component to the supplied RenderTreeBuilder.
protected override void BuildRenderTree(RenderTreeBuilder __builder)
Parameters
__builder
RenderTreeBuilder