Class MBCard
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
ActionIcons
A render fragment where you place MBIconButtons as action icons.
[Parameter]
public RenderFragment ActionIcons { get; set; }
Property Value
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
CardStyle
The card style - see MBCardStyle
Overrides CardStyle
[Parameter]
public MBCardStyle? CardStyle { get; set; }
Property Value
NonSemanticContent
Non-semantic content that falls outside the
mdc-card__content
block. See https://github.com/material-components/material-components-web/tree/master/packages/mdc-card#non-semantic-content
[Parameter]
public RenderFragment NonSemanticContent { get; set; }
Property Value
Primary
A render fragment for the primary section
[Parameter]
public RenderFragment Primary { get; set; }
Property Value
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
PrimaryActionAriaControls
The primary action's aria-controls attribute - defaults to "".
[Parameter]
public string PrimaryActionAriaControls { get; set; }
Property Value
PrimaryActionAriaSelected
The primary action's aria-selected attribute - defaults to false.
[Parameter]
public bool PrimaryActionAriaSelected { get; set; }
Property Value
PrimaryActionRole
The primary action's role attribute - defaults to "".
[Parameter]
public string PrimaryActionRole { get; set; }
Property Value
PrimaryActionTabIndex
The primary action's tabindex attribute - defaults to 0.
[Parameter]
public int PrimaryActionTabIndex { get; set; }
Property Value
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()