Class MBDataTable<TItem>
This is a general purpose Material Theme data table.
Inheritance
MBDataTable<TItem>
Assembly: Material.Blazor.dll
Syntax
public class MBDataTable<TItem> : ComponentFoundation, IDisposable
Type Parameters
Properties
|
Improve this Doc
View Source
Density
The data table's density.
Declaration
public MBDensity? Density { get; set; }
Property Value
|
Improve this Doc
View Source
GetKeysFunc
A function delegate to return the parameters for @key
attributes. If unused
"fake" keys set to GUIDs will be used.
Declaration
public Func<TItem, object> GetKeysFunc { get; set; }
Property Value
|
Improve this Doc
View Source
HasProgressBar
Determines whether the data table has a progress bar.
Declaration
public bool HasProgressBar { get; set; }
Property Value
|
Improve this Doc
View Source
Items
Data to render in the TableRow render fragment.
Declaration
public IEnumerable<TItem> Items { get; set; }
Property Value
|
Improve this Doc
View Source
Paginator
Declaration
public RenderFragment Paginator { get; set; }
Property Value
Type |
Description |
RenderFragment |
|
|
Improve this Doc
View Source
ShowProgress
Determines whether the data table has a progress bar.
Declaration
public bool ShowProgress { get; set; }
Property Value
|
Improve this Doc
View Source
If true, makes the header sticky.
Declaration
public bool StickyHeader { get; set; }
Property Value
|
Improve this Doc
View Source
The table header as a render fragment using <th>
HTML elements.
Declaration
public RenderFragment TableHeader { get; set; }
Property Value
Type |
Description |
RenderFragment |
|
|
Improve this Doc
View Source
TableRow
Render fragment for each row of the table using <td>
HTML elements.
Declaration
public RenderFragment<TItem> TableRow { get; set; }
Property Value
Type |
Description |
RenderFragment<TItem> |
|
Methods
|
Improve this Doc
View Source
OnInitializedAsync()
Declaration
protected override async Task OnInitializedAsync()
Returns
|
Improve this Doc
View Source
Declaration
protected override async Task OnParametersSetAsync()
Returns
Overrides
Implements