Table of Contents

Class BOBDataCards<TItem>

Namespace
BlazOrbit.Components
Assembly
BlazOrbit.dll
[GenerateComponentInfo]
public class BOBDataCards<TItem> : BOBDataCollectionBase<TItem, BOBDataCards<TItem>, DataCardsVariant>, IVariantComponent<DataCardsVariant>, IVariantComponent, IPureBuiltComponent, IBuiltComponent, IHasDensity, IHasSize, IHasShadow, IHasBorder, IHasBackgroundColor, IDataCollectionFamilyComponent

Type Parameters

TItem
Inheritance
object
ComponentBase
BOBDataCards<TItem>
Implements
Inherited Members

Constructors

BOBDataCards()

public BOBDataCards()

Properties

BuiltInTemplates

protected override IReadOnlyDictionary<DataCardsVariant, Func<BOBDataCards<TItem>, RenderFragment>> BuiltInTemplates { get; }

Property Value

IReadOnlyDictionary<DataCardsVariant, Func<BOBDataCards<TItem>, RenderFragment>>

CardBackground

CardBackground.

[Parameter]
public string? CardBackground { get; set; }

Property Value

string

CardBorder

CardBorder.

[Parameter]
public BorderStyle? CardBorder { get; set; }

Property Value

BorderStyle

CardFooterTemplate

Custom template for rendering the CardFooter.

[Parameter]
public RenderFragment<TItem>? CardFooterTemplate { get; set; }

Property Value

RenderFragment<TItem>

CardHeaderTemplate

Custom template for rendering the CardHeader.

[Parameter]
public RenderFragment<TItem>? CardHeaderTemplate { get; set; }

Property Value

RenderFragment<TItem>

CardShadow

CardShadow.

[Parameter]
public ShadowStyle? CardShadow { get; set; }

Property Value

ShadowStyle

CardTemplate

Custom template for rendering the Card.

[Parameter]
public RenderFragment<TItem>? CardTemplate { get; set; }

Property Value

RenderFragment<TItem>

ColumnsCount

ColumnsCount.

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

Property Value

int

DefaultVariant

Default variant used when no explicit variant is specified.

public override DataCardsVariant DefaultVariant { get; }

Property Value

DataCardsVariant

Gap

Gap.

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

Property Value

string

MinCardWidth

MinCardWidth.

[Parameter]
public string? MinCardWidth { get; set; }

Property Value

string

Methods

BuildComponentCssVariables(Dictionary<string, string>)

Contributes additional CSS custom properties to the inline style attribute. Keys that collide with framework-owned --bob-inline-* variables will be overwritten.

public override void BuildComponentCssVariables(Dictionary<string, string> cssVariables)

Parameters

cssVariables Dictionary<string, string>

BuildRenderTree(RenderTreeBuilder)

Renders the component to the supplied Microsoft.AspNetCore.Components.Rendering.RenderTreeBuilder.

protected override void BuildRenderTree(RenderTreeBuilder __builder)

Parameters

__builder RenderTreeBuilder

OnAfterRender(bool)

Method invoked after each time the component has rendered interactively and the UI has finished updating (for example, after elements have been added to the browser DOM). Any Microsoft.AspNetCore.Components.ElementReference fields will be populated by the time this runs.

This method is not invoked during prerendering or server-side rendering, because those processes are not attached to any live browser DOM and are already complete before the DOM is updated.

protected override void OnAfterRender(bool firstRender)

Parameters

firstRender bool

Set to true if this is the first time Microsoft.AspNetCore.Components.ComponentBase.OnAfterRender(bool) has been invoked on this component instance; otherwise false.

Remarks

The Microsoft.AspNetCore.Components.ComponentBase.OnAfterRender(bool) and Microsoft.AspNetCore.Components.ComponentBase.OnAfterRenderAsync(bool) lifecycle methods are useful for performing interop, or interacting with values received from @ref. Use the firstRender parameter to ensure that initialization work is only performed once.