Table of Contents

Class BOBDataGrid<TItem>

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

Type Parameters

TItem
Inheritance
object
ComponentBase
BOBDataGrid<TItem>
Implements
Inherited Members

Constructors

BOBDataGrid()

public BOBDataGrid()

Properties

BuiltInTemplates

protected override IReadOnlyDictionary<DataGridVariant, Func<BOBDataGrid<TItem>, RenderFragment>> BuiltInTemplates { get; }

Property Value

IReadOnlyDictionary<DataGridVariant, Func<BOBDataGrid<TItem>, RenderFragment>>

CellBorder

Border style applied to individual cells.

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

Property Value

BorderStyle

DefaultVariant

Default variant used when no explicit variant is specified.

public override DataGridVariant DefaultVariant { get; }

Property Value

DataGridVariant

FixedHeader

When true, the header row stays fixed while scrolling.

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

Property Value

bool

FooterTemplate

Custom template rendered inside the table footer.

[Parameter]
public RenderFragment? FooterTemplate { get; set; }

Property Value

RenderFragment

RowBorder

Border style applied to rows.

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

Property Value

BorderStyle

RowTemplate

Custom template for rendering each data row.

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

Property Value

RenderFragment<TItem>

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