Table of Contents

Class MBCard

Namespace
Material.Blazor
Assembly
Material.Blazor.dll

A Material Theme card with three elements: primary, primary action buttons and action icons.

public class MBCard : ComponentFoundation, IComponent, IHandleEvent, IHandleAfterRender, IDisposable
Inheritance
MBCard
Implements
Inherited Members

Constructors

MBCard()

public MBCard()

Properties

ActionButtons

A render fragment where you place MBButtons as action buttons.

[Parameter]
public RenderFragment ActionButtons { get; set; }

Property Value

RenderFragment

ActionIcons

A render fragment where you place MBIconButtons as action icons.

[Parameter]
public RenderFragment ActionIcons { get; set; }

Property Value

RenderFragment

AutoStyled

Styles the primary and primary action sections with padding if set to True. This is optional and you can individually style the HTML in the primary and primary action render fragments if you prefer.

[Parameter]
public bool AutoStyled { get; set; }

Property Value

bool

CardStyle

The card style - see MBCardStyle

Overrides CardStyle

[Parameter]
public MBCardStyle? CardStyle { get; set; }

Property Value

MBCardStyle?

NonSemanticContent

[Parameter]
public RenderFragment NonSemanticContent { get; set; }

Property Value

RenderFragment

Primary

A render fragment for the primary section

[Parameter]
public RenderFragment Primary { get; set; }

Property Value

RenderFragment

PrimaryAction

A render fragment for the primary action section, which responds to Blazor events such as @onclick.

[Parameter]
public RenderFragment PrimaryAction { get; set; }

Property Value

RenderFragment

PrimaryActionAriaControls

The primary action's aria-controls attribute - defaults to "".

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

Property Value

string

PrimaryActionAriaSelected

The primary action's aria-selected attribute - defaults to false.

[Parameter]
public bool PrimaryActionAriaSelected { get; set; }

Property Value

bool

PrimaryActionRole

The primary action's role attribute - defaults to "".

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

Property Value

string

PrimaryActionTabIndex

The primary action's tabindex attribute - defaults to 0.

[Parameter]
public int PrimaryActionTabIndex { get; set; }

Property Value

int

Methods

BuildRenderTree(RenderTreeBuilder)

Renders the component to the supplied RenderTreeBuilder.

protected override void BuildRenderTree(RenderTreeBuilder __builder)

Parameters

__builder RenderTreeBuilder

OnInitializedAsync()

Method invoked when the component is ready to start, having received its initial parameters from its parent in the render tree.

Override this method if you will perform an asynchronous operation and want the component to refresh when that operation is completed.

protected override Task OnInitializedAsync()

Returns

Task

A Task representing any asynchronous operation.