Table of Contents

Class MBShield

Namespace
Material.Blazor
Assembly
Material.Blazor.dll

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

IMBIconFoundry

Label

Label (to the left).

[Parameter]
public string Label { get; set; }

Property Value

string

LabelClass

Extra CSS class for the Label.

[Parameter]
public string LabelClass { get; set; }

Property Value

string

LabelIcon

Icon for the Label.

[Parameter]
public string LabelIcon { get; set; }

Property Value

string

LabelStyle

HTML style attribute for the Label.

[Parameter]
public string LabelStyle { get; set; }

Property Value

string

ShieldType

The shield type, being Label (left part), Value (right part) or both.

[Parameter]
public MBShieldType ShieldType { get; set; }

Property Value

MBShieldType

Value

Value (to the right)

[Parameter]
public string Value { get; set; }

Property Value

string

ValueClass

Extra CSS Class for the Value.

[Parameter]
public string ValueClass { get; set; }

Property Value

string

ValueIcon

Icon for the Value.

[Parameter]
public string ValueIcon { get; set; }

Property Value

string

ValueStyle

HTML style attribute for the Value.

[Parameter]
public string ValueStyle { get; set; }

Property Value

string

Methods

BuildRenderTree(RenderTreeBuilder)

Renders the component to the supplied RenderTreeBuilder.

protected override void BuildRenderTree(RenderTreeBuilder __builder)

Parameters

__builder RenderTreeBuilder