Class MudTimelineItem
- Namespace
- MudBlazor
- Assembly
- MudBlazor.dll
A chronological item displayed as part of a MudTimeline
public class MudTimelineItem : MudComponentBase, IComponent, IHandleEvent, IHandleAfterRender, IMudStateHasChanged, IDisposable
- Inheritance
-
MudTimelineItem
- Implements
- Inherited Members
- Extension Methods
Constructors
MudTimelineItem()
public MudTimelineItem()
Properties
ChildContent
The custom content for the entire item.
[Parameter]
[Category("Behavior")]
public RenderFragment? ChildContent { get; set; }
Property Value
Remarks
Defaults to null
. When set, ItemContent will not be displayed.
Classnames
protected string Classnames { get; }
Property Value
Color
The color of the dot.
[Parameter]
[Category("Dot")]
public Color Color { get; set; }
Property Value
Remarks
Defaults to Default.
DotClassnames
protected string DotClassnames { get; }
Property Value
DotInnerClassnames
protected string DotInnerClassnames { get; }
Property Value
DotStyle
The CSS styles applied to the dot.
[Parameter]
[Category("Dot")]
public string? DotStyle { get; set; }
Property Value
Remarks
Defaults to null
. Styles such as background-color
can be applied (e.g. background-color:red;
).
Elevation
The size of the dot's drop shadow.
[Parameter]
[Category("Dot")]
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.
HideDot
Hides the dot for this item.
[Parameter]
[Category("Dot")]
public bool HideDot { get; set; }
Property Value
Remarks
Defaults to false
.
Icon
(Obsolete) The icon displayed for the dot.
[Parameter]
[Category("Dot")]
public string? Icon { get; set; }
Property Value
ItemContent
The custom content for this item.
[Parameter]
[Category("Behavior")]
public RenderFragment? ItemContent { get; set; }
Property Value
Remarks
Defaults to null
. Only applies if ChildContent is null
.
ItemDot
The custom content for the dot.
[Parameter]
[Category("Dot")]
public RenderFragment? ItemDot { get; set; }
Property Value
Remarks
Defaults to null
.
ItemOpposite
The custom content for the opposite side of this item.
[Parameter]
[Category("Behavior")]
public RenderFragment? ItemOpposite { get; set; }
Property Value
Remarks
Defaults to null
.
Parent
[CascadingParameter]
protected MudBaseItemsControl<MudTimelineItem>? Parent { get; set; }
Property Value
Size
The size of the dot.
[Parameter]
[Category("Dot")]
public Size Size { get; set; }
Property Value
Remarks
Defaults to Small.
TimelineAlign
Overrides TimelineAlign with a custom value.
[Parameter]
[Category("Behavior")]
public TimelineAlign TimelineAlign { get; set; }
Property Value
Remarks
Defaults to Default.
Variant
The display variant for the dot.
[Parameter]
[Category("Dot")]
public Variant Variant { get; set; }
Property Value
Remarks
Defaults to Outlined.
Methods
BuildRenderTree(RenderTreeBuilder)
protected override void BuildRenderTree(RenderTreeBuilder __builder)
Parameters
__builder
RenderTreeBuilder
Dispose()
Releases resources used by this component.
public void Dispose()
OnInitializedAsync()
protected override Task OnInitializedAsync()