Class MudSimpleTable
- Namespace
- MudBlazor
- Assembly
- MudBlazor.dll
A table similar to MudTable<T> but with basic styling features.
public class MudSimpleTable : MudComponentBase, IComponent, IHandleEvent, IHandleAfterRender, IMudStateHasChanged
- Inheritance
-
MudSimpleTable
- Implements
- Inherited Members
- Extension Methods
Constructors
MudSimpleTable()
public MudSimpleTable()
Properties
Bordered
Shows left and right borders for each table cell.
[Parameter]
[Category("Appearance")]
public bool Bordered { get; set; }
Property Value
Remarks
Defaults to false
.
ChildContent
The content within this table.
[Parameter]
[Category("Behavior")]
public RenderFragment? ChildContent { get; set; }
Property Value
Remarks
Use table HTML tags such as <thead>
, <tbody>
, <tr>
, <th>
or <td>
.
Classname
protected string Classname { get; }
Property Value
Dense
Uses compact padding for all rows.
[Parameter]
[Category("Appearance")]
public bool Dense { get; set; }
Property Value
Remarks
Defaults to false
.
Elevation
The size of the drop shadow.
[Parameter]
[Category("Appearance")]
public int Elevation { get; set; }
Property Value
Remarks
Defaults to 1
. A higher number creates a heavier drop shadow. Use a value of 0
for no shadow.
FixedHeader
Fixes the table header in place while the table is scrolled.
[Parameter]
[Category("Appearance")]
public bool FixedHeader { get; set; }
Property Value
Remarks
Defaults to false
. When true
, the CSS Height
must also be set. Example: Style="height:300px;"
Hover
Highlights rows when hovering over them.
[Parameter]
[Category("Appearance")]
public bool Hover { get; set; }
Property Value
Remarks
Defaults to false
.
Outlined
Shows borders around the table.
[Parameter]
[Category("Appearance")]
public bool Outlined { get; set; }
Property Value
Remarks
Defaults to false
.
Square
Uses square corners for the table.
[Parameter]
[Category("Appearance")]
public bool Square { get; set; }
Property Value
Remarks
Defaults to false
.
Can be overridden by Rounded.
Striped
Uses alternating colors for table rows.
[Parameter]
[Category("Appearance")]
public bool Striped { get; set; }
Property Value
Remarks
Defaults to false
.
Methods
BuildRenderTree(RenderTreeBuilder)
protected override void BuildRenderTree(RenderTreeBuilder __builder)
Parameters
__builder
RenderTreeBuilder