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
TItemThe type of the rows.
- Implements
-
IEquatable<TwTableRow<TItem>>
- 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
ItemTItemThe row's item.
IndexintThe row's zero based place among all the rows, not just the ones on screen.
AriaRowIndexstringThe value for the row's
aria-rowindexattribute while the table is virtualized, ornullwhen 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
Index
The row's zero based place among all the rows, not just the ones on screen.
public int Index { get; init; }
Property Value
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
Equals(object)
public override bool Equals(object obj)
Parameters
objobject
Returns
Equals(TwTableRow<TItem>)
public bool Equals(TwTableRow<TItem> other)
Parameters
otherTwTableRow<TItem>
Returns
GetHashCode()
public override int GetHashCode()
Returns
ToString()
public override string ToString()
Returns
Operators
operator ==(TwTableRow<TItem>, TwTableRow<TItem>)
public static bool operator ==(TwTableRow<TItem> left, TwTableRow<TItem> right)
Parameters
leftTwTableRow<TItem>rightTwTableRow<TItem>
Returns
operator !=(TwTableRow<TItem>, TwTableRow<TItem>)
public static bool operator !=(TwTableRow<TItem> left, TwTableRow<TItem> right)
Parameters
leftTwTableRow<TItem>rightTwTableRow<TItem>