Table of Contents

Struct TwTableRow<TItem>

Namespace
TwBlazor.Components
Assembly
TwBlazor.dll

One row of a TwTableRows<TItem>, the context of RowTemplate.

public readonly struct TwTableRow<TItem> : IEquatable<TwTableRow<TItem>>

Type Parameters

TItem

The type of the rows.

Implements
Inherited Members

Constructors

TwTableRow(TItem, int, string?)

One row of a TwTableRows<TItem>, the context of RowTemplate.

public TwTableRow(TItem Item, int Index, string? AriaRowIndex)

Parameters

Item TItem

The row's item.

Index int

The row's zero based place among all the rows, not just the ones on screen.

AriaRowIndex string

The value for the row's aria-rowindex attribute while the table is virtualized, or null when every row is in the page and screen readers can count them themselves.

Properties

AriaRowIndex

The value for the row's aria-rowindex attribute while the table is virtualized, or null when every row is in the page and screen readers can count them themselves.

public string? AriaRowIndex { get; init; }

Property Value

string

Index

The row's zero based place among all the rows, not just the ones on screen.

public int Index { get; init; }

Property Value

int

Item

The row's item.

public TItem Item { get; init; }

Property Value

TItem

Methods

Deconstruct(out TItem, out int, out string?)

public void Deconstruct(out TItem Item, out int Index, out string? AriaRowIndex)

Parameters

Item TItem
Index int
AriaRowIndex string

Equals(object)

public override bool Equals(object obj)

Parameters

obj object

Returns

bool

Equals(TwTableRow<TItem>)

public bool Equals(TwTableRow<TItem> other)

Parameters

other TwTableRow<TItem>

Returns

bool

GetHashCode()

public override int GetHashCode()

Returns

int

ToString()

public override string ToString()

Returns

string

Operators

operator ==(TwTableRow<TItem>, TwTableRow<TItem>)

public static bool operator ==(TwTableRow<TItem> left, TwTableRow<TItem> right)

Parameters

left TwTableRow<TItem>
right TwTableRow<TItem>

Returns

bool

operator !=(TwTableRow<TItem>, TwTableRow<TItem>)

public static bool operator !=(TwTableRow<TItem> left, TwTableRow<TItem> right)

Parameters

left TwTableRow<TItem>
right TwTableRow<TItem>

Returns

bool