Skip to content

TableExtensions

Namespace: Hex1b

Assembly: Hex1b.dll

Extension methods for creating TableWidget instances.

csharp
public static class TableExtensions

Inheritance

ObjectTableExtensions

Methods

Table<TRow, TParent>(WidgetContext<TParent>, IReadOnlyList<TRow>?)

Creates a new table widget with the specified data.

Parameters:

  • ctx (WidgetContext<<TParent>>): The widget context.
  • data (IReadOnlyList<<TRow>>): The data source for table rows. Pass null to show loading state.

Returns: TableWidget<<TRow>>

A new TableWidget instance.

csharp
public static TableWidget<TRow> Table<TRow, TParent>(this WidgetContext<TParent> ctx, IReadOnlyList<TRow>? data) where TParent : Hex1bWidget

Table<TRow, TParent>(WidgetContext<TParent>, ITableDataSource<TRow>)

Creates a new table widget with an async data source for virtualized tables.

Parameters:

  • ctx (WidgetContext<<TParent>>): The widget context.
  • dataSource (ITableDataSource<<TRow>>): The async data source for virtualized data loading.

Returns: TableWidget<<TRow>>

A new TableWidget instance.

csharp
public static TableWidget<TRow> Table<TRow, TParent>(this WidgetContext<TParent> ctx, ITableDataSource<TRow> dataSource) where TParent : Hex1bWidget

Table<TRow>(RootContext, IReadOnlyList<TRow>?)

Creates a new table widget with the specified data.

Parameters:

Returns: TableWidget<<TRow>>

A new TableWidget instance.

csharp
public static TableWidget<TRow> Table<TRow>(this RootContext ctx, IReadOnlyList<TRow>? data)

Table<TRow>(RootContext, ITableDataSource<TRow>)

Creates a new table widget with an async data source for virtualized tables.

Parameters:

  • ctx (RootContext): The root context.
  • dataSource (ITableDataSource<<TRow>>): The async data source for virtualized data loading.

Returns: TableWidget<<TRow>>

A new TableWidget instance.

csharp
public static TableWidget<TRow> Table<TRow>(this RootContext ctx, ITableDataSource<TRow> dataSource)

Released under the MIT License.