DwsTimeline
The DwsTimeline component displays a sequence of events. It supports vertical or horizontal layouts, theming, icon customization, timestamps, expandable content, grouping, multi-column (parallel) layouts, progress indication, step navigation, item interaction events, and a data-driven mode via DwsDataTimeline<TItem>. With Layout="Waterfall" it becomes a trace view: nested spans as rows with duration bars and markers below a zoomable time axis, with status, lanes, selection, lazy children and virtualization. Its controls are the library's own: the zoom, pan and step buttons and the expand toggle are icon DwsButtons (44px on touch screens, where the zoom tools take a row of their own), the progress a DwsProgressBar, a loading row a DwsSpinner. A tap that selects an item, and the step buttons, play the Haptic feedback while haptics are on.
Vertical Timeline (default)
The default vertical layout.
Show Code
Timeline.razor
<DwsTimeline Name='TimelineDemo_Vertical'>
<DwsTimelineItem Name='TimelineDemo_Vertical_Item1' Icon='bi bi-rocket-takeoff' Title='Project Kickoff' Description='Initial planning and requirements gathering.' />
<DwsTimelineItem Name='TimelineDemo_Vertical_Item2' Icon='bi bi-tools' Title='Development' Description='Core feature implementation.' />
<DwsTimelineItem Name='TimelineDemo_Vertical_Item3' Icon='bi bi-check-circle' Title='Release' Description='Shipped to production.' />
</DwsTimeline>Alternating Layout
Align=Alternate zig-zags items left and right around a centered line.
Show Code
Timeline.razor
<DwsTimeline Name='TimelineDemo_Alternate' Align='DwsTimelineAlign.Alternate' Color='DwsColor.Accent'>
<DwsTimelineItem Name='TimelineDemo_Alternate_Item1' Icon='bi bi-person-plus' Title='Account created' Description='Welcome aboard!'
Timestamp='new DateTime(2026, 1, 2)' TimestampFormatType='DwsDateTimeFormatType.ShortDate' IsCompleted='true' />
<DwsTimelineItem Name='TimelineDemo_Alternate_Item2' Icon='bi bi-envelope-check' Title='Email verified' Description='Confirmed via email link.'
Timestamp='new DateTime(2026, 1, 3)' TimestampFormatType='DwsDateTimeFormatType.ShortDate' IsCompleted='true' />
<DwsTimelineItem Name='TimelineDemo_Alternate_Item3' Icon='bi bi-cart' Title='First purchase' Description='Checkout in progress.'
Timestamp='new DateTime(2026, 1, 9)' TimestampFormatType='DwsDateTimeFormatType.ShortDate' IsActive='true' />
<DwsTimelineItem Name='TimelineDemo_Alternate_Item4' Icon='bi bi-star-fill' Title='Loyalty tier reached' Description='Unlocked after 3 orders.'
Timestamp='new DateTime(2026, 2, 14)' TimestampFormatType='DwsDateTimeFormatType.ShortDate' />
</DwsTimeline>Horizontal Timeline
Lays items out left-to-right. Resize the window below ~576px to see it collapse back to a vertical layout for mobile.
Show Code
Timeline.razor
<DwsTimeline Name='TimelineDemo_Horizontal' Orientation='DwsLayoutOrientation.Horizontal' Color='DwsColor.Info'>
<DwsTimelineItem Name='TimelineDemo_Horizontal_Item1' Icon='bi bi-1-circle' Title='Order Placed' Description='Order received.' />
<DwsTimelineItem Name='TimelineDemo_Horizontal_Item2' Icon='bi bi-2-circle' Title='Packed' Description='Ready for shipping.' />
<DwsTimelineItem Name='TimelineDemo_Horizontal_Item3' Icon='bi bi-3-circle' Title='Delivered' Description='Order delivered.' />
</DwsTimeline>Theme Colors
Color sets the theme accent (spine, markers, progress bar) per DwsTimeline instance.
Show Code
Timeline.razor
<div class='d-flex gap-3 flex-wrap'>
<DwsTimeline Name='TimelineDemo_Colors_Primary' Color='DwsColor.Primary'>
<DwsTimelineItem Name='TimelineDemo_Colors_Primary_Item' Icon='bi bi-circle-fill' Title='Primary' Description='' IsCompleted='true' />
</DwsTimeline>
<DwsTimeline Name='TimelineDemo_Colors_Success' Color='DwsColor.Success'>
<DwsTimelineItem Name='TimelineDemo_Colors_Success_Item' Icon='bi bi-circle-fill' Title='Success' Description='' IsCompleted='true' />
</DwsTimeline>
<DwsTimeline Name='TimelineDemo_Colors_Warning' Color='DwsColor.Warning'>
<DwsTimelineItem Name='TimelineDemo_Colors_Warning_Item' Icon='bi bi-circle-fill' Title='Warning' Description='' IsCompleted='true' />
</DwsTimeline>
<DwsTimeline Name='TimelineDemo_Colors_Error' Color='DwsColor.Error'>
<DwsTimelineItem Name='TimelineDemo_Colors_Error_Item' Icon='bi bi-circle-fill' Title='Error' Description='' IsCompleted='true' />
</DwsTimeline>
</div>Icon Position
IconPosition places the marker to the left (default) or to the right of the content.
Show Code
Timeline.razor
<DwsTimeline Name='TimelineDemo_Icon'>
<DwsTimelineItem Name='TimelineDemo_Icon_Item1' Icon='bi bi-star-fill' Title='Left icon (default)' Description='IconPosition=Left.' IconPosition='DwsTimelineIconPosition.Left' />
<DwsTimelineItem Name='TimelineDemo_Icon_Item2' Icon='bi bi-star-fill' Title='Right icon' Description='IconPosition=Right.' IconPosition='DwsTimelineIconPosition.Right' />
</DwsTimeline>Custom Icon Template
IconTemplate replaces the marker entirely with your own content, here a badge.
Show Code
Timeline.razor
<DwsTimeline Name='TimelineDemo_IconTemplate'>
<DwsTimelineItem Name='TimelineDemo_Icon_Item3' Title='Custom icon template' Description='Overrides the icon entirely.'>
<IconTemplate>
<DwsBadge Name='TimelineDemo_Icon_Item3_Badge' Content='OK' Color='DwsColor.Success' />
</IconTemplate>
</DwsTimelineItem>
</DwsTimeline>Timestamps
Culture-aware timestamps rendered next to the title.
Show Code
Timeline.razor
<DwsTimeline Name='TimelineDemo_Timestamp'>
<DwsTimelineItem Name='TimelineDemo_Timestamp_Item1' Icon='bi bi-calendar-event' Title='Kickoff' Description='Project started.'
Timestamp='new DateTime(2026, 1, 6)' TimestampFormatType='DwsDateTimeFormatType.LongDate' />
<DwsTimelineItem Name='TimelineDemo_Timestamp_Item2' Icon='bi bi-calendar-event' Title='Beta' Description='Beta released.'
Timestamp='new DateTime(2026, 3, 14)' TimestampFormatType='DwsDateTimeFormatType.LongDate' />
</DwsTimeline>Grouped Timeline
Items sharing GroupName render a group header.
Show Code
Timeline.razor
<DwsTimeline Name='TimelineDemo_Grouped'>
<DwsTimelineItem Name='TimelineDemo_Grouped_Item1' Icon='bi bi-dot' Title='Kickoff meeting' Description='' GroupName='2026' />
<DwsTimelineItem Name='TimelineDemo_Grouped_Item2' Icon='bi bi-dot' Title='Scope finalized' Description='' GroupName='2026' />
<DwsTimelineItem Name='TimelineDemo_Grouped_Item3' Icon='bi bi-dot' Title='Legacy migration' Description='' GroupName='2025' />
</DwsTimeline>Parallel Timelines (Columns)
Multi-column layout for side-by-side timelines.
Show Code
Timeline.razor
<DwsTimeline Name='TimelineDemo_Columns' Columns='2'>
<DwsTimelineItem Name='TimelineDemo_Columns_Item1' Icon='bi bi-person' Title='Team A' Description='Milestone 1' />
<DwsTimelineItem Name='TimelineDemo_Columns_Item2' Icon='bi bi-people' Title='Team B' Description='Milestone 1' />
<DwsTimelineItem Name='TimelineDemo_Columns_Item3' Icon='bi bi-person' Title='Team A' Description='Milestone 2' />
<DwsTimelineItem Name='TimelineDemo_Columns_Item4' Icon='bi bi-people' Title='Team B' Description='Milestone 2' />
</DwsTimeline>Progress Indicator
ShowProgress renders a progress bar above the items.
Show Code
Timeline.razor
<DwsTimeline Name='TimelineDemo_Progress' ShowProgress='true' ProgressPercentage='66'>
<DwsTimelineItem Name='TimelineDemo_Progress_Item1' Icon='bi bi-check-lg' Title='Step 1' Description='Completed.' IsCompleted='true' />
<DwsTimelineItem Name='TimelineDemo_Progress_Item2' Icon='bi bi-check-lg' Title='Step 2' Description='Completed.' IsCompleted='true' />
<DwsTimelineItem Name='TimelineDemo_Progress_Item3' Icon='bi bi-clock-history' Title='Step 3' Description='In progress.' />
</DwsTimeline>Data-Driven Timeline
DwsDataTimeline renders directly from a plain C# collection using field selectors.
Show Code
Timeline.razor
<DwsDataTimeline TItem='TimelineDemoItem' Name='TimelineDemo_DataDriven' Items='@_dataItems'
TitleSelector='@(i => i.Title)' DescriptionSelector='@(i => i.Description)'
IconSelector='@(i => i.Icon)' TimestampSelector='@(i => (DateTime?)i.Timestamp)'
IsCompletedSelector='@(i => i.IsCompleted)' ShowProgress='true' />
@code {
private record TimelineDemoItem(string Id, string Title, string Description, string Icon, DateTime Timestamp, bool IsCompleted);
private readonly List<TimelineDemoItem> _dataItems =
[
new("signup", "Signed up", "Account created", "bi bi-person-plus", new DateTime(2026, 1, 2), true),
new("verify", "Verified email", "Email confirmed", "bi bi-envelope-check", new DateTime(2026, 1, 3), true),
new("purchase", "First purchase", "Awaiting checkout", "bi bi-cart", new DateTime(2026, 1, 9), false),
];
}Custom Item Templates
ItemTemplate takes full control of per-item rendering, taking precedence over the field selectors.
Show Code
Timeline.razor
<DwsDataTimeline TItem='TimelineDemoItem' Name='TimelineDemo_ItemTemplate' Items='@_dataItems' ShowProgress='true' IsCompletedSelector='@(i => i.IsCompleted)'>
<ItemTemplate Context='item'>
<DwsTimelineItem Name='@($"TimelineDemo_ItemTemplate_{item.Id}")' Icon='@item.Icon' Title='@item.Title'>
<DwsBadge Name='@($"TimelineDemo_ItemTemplate_{item.Id}_Badge")' Content='@(item.IsCompleted ? "Done" : "Pending")' Color='@(item.IsCompleted ? DwsColor.Success : DwsColor.Secondary)' />
<DwsTypography Name='@($"TimelineDemo_ItemTemplate_{item.Id}_Text")' Typography='DwsTypographyType.Paragraph' Class='mb-0'>@item.Description</DwsTypography>
</DwsTimelineItem>
</ItemTemplate>
</DwsDataTimeline>
@code {
// Id keeps the item names stable; the titles are display text.
private record TimelineDemoItem(string Id, string Title, string Description, string Icon, DateTime Timestamp, bool IsCompleted);
private readonly List<TimelineDemoItem> _dataItems =
[
new("signup", "Signed up", "Account created", "bi bi-person-plus", new DateTime(2026, 1, 2), true),
new("verify", "Verified email", "Email confirmed", "bi bi-envelope-check", new DateTime(2026, 1, 3), true),
new("purchase", "First purchase", "Awaiting checkout", "bi bi-cart", new DateTime(2026, 1, 9), false),
];
}Waterfall from Markup
Nested DwsTimelineItems are the hierarchy. Start and Duration are placed against RangeStart / RangeEnd; OffsetPercent and WidthPercent place a bar directly; an item with a Start and no Duration is a marker. SelectedKey is bound to the page.
Show Code
Timeline.razor
<DwsTimeline Name='TimelineDemo_WaterfallDeclarative' Layout='DwsTimelineLayout.Waterfall' Color='DwsColor.Accent'
RangeStart='@_traceStart' RangeEnd='@_traceStart.AddMilliseconds(400)'
LabelWidth='300' @bind-SelectedKey='_declarativeSelectedKey'>
<DwsTimelineItem Name='TimelineDemo_WaterfallDeclarative_Checkout' ItemKey='checkout' Title='POST /checkout'
Start='@_traceStart' Duration='@TimeSpan.FromMilliseconds(400)' Status='DwsTimelineItemStatus.Ok'
Lane='shop' Badges='@_declarativeBadgesShop' IsExpandable='true' IsExpanded='true'>
<DwsTimelineItem Name='TimelineDemo_WaterfallDeclarative_Stock' ItemKey='stock' Title='reserve stock'
Start='@_traceStart.AddMilliseconds(20)' Duration='@TimeSpan.FromMilliseconds(120)' Status='DwsTimelineItemStatus.Ok'
Lane='inventory' />
<DwsTimelineItem Name='TimelineDemo_WaterfallDeclarative_Payment' ItemKey='payment' Title='charge card'
Start='@_traceStart.AddMilliseconds(150)' Duration='@TimeSpan.FromMilliseconds(230)' Status='DwsTimelineItemStatus.Running'
Lane='payments' LaneColor='DwsColor.Warning' IsExpandable='true' IsExpanded='true'>
<DwsTimelineItem Name='TimelineDemo_WaterfallDeclarative_Retry' ItemKey='retry' Title='gateway retry'
Start='@_traceStart.AddMilliseconds(260)' Status='DwsTimelineItemStatus.Failed' StatusText='Retry after HTTP 502'
Lane='payments' LaneColor='DwsColor.Warning' />
</DwsTimelineItem>
<DwsTimelineItem Name='TimelineDemo_WaterfallDeclarative_Mail' ItemKey='mail' Title='queue confirmation mail'
OffsetPercent='90' WidthPercent='6' DurationText='24 ms (queued)' Status='DwsTimelineItemStatus.Cancelled'
Lane='mail' />
</DwsTimelineItem>
</DwsTimeline>
<DwsTypography Name="TimelineDemo_Text02" Typography="DwsTypographyType.Paragraph">Selected: @(_declarativeSelectedKey ?? "none")</DwsTypography>
@code {
private static readonly DateTime _traceStart = new(2026, 3, 1, 9, 30, 0, DateTimeKind.Utc);
private static readonly string[] _declarativeBadgesShop = ["web-1", "200"];
private string? _declarativeSelectedKey;
}Large Trace: Lanes and Virtualization
Virtualize renders only the rows near the visible part of the scrolling area, at a fixed RowHeight, so a trace of several hundred spans stays fast. GroupByLane groups the root spans under a header per service; the axis stays pinned while the rows scroll.
Show Code
Timeline.razor
<DwsDataTimeline TItem='TraceSpan' Name='TimelineDemo_Virtualized' Items='@_largeTrace'
Layout='DwsTimelineLayout.Waterfall' AriaLabel='Batch trace with 480 spans'
KeySelector='@SpanKey' TitleSelector='@(s => s.Name)'
StartSelector='@SpanStart' DurationSelector='@SpanDuration' StatusSelector='@(s => s.Status)'
LaneSelector='@(s => s.Service)' GroupByLane='true'
Virtualize='true' RowHeight='28' MaxHeight='320' Selectable='true' />
@code {
// 480 spans over four services. A span that failed gets a marker for its error.
private readonly List<TraceSpan> _largeTrace = BuildLargeTrace();
private static List<TraceSpan> BuildLargeTrace()
{
string[] services = ["ingest", "transform", "validate", "store"];
List<TraceSpan> spans = [];
for (int i = 0; i < 480; i++)
{
bool failed = i % 37 == 36;
spans.Add(new TraceSpan
{
Id = $"batch-{i}", Name = $"{services[i % 4]} record {i + 1}", Service = services[i % 4], Node = $"worker-{i % 3 + 1}",
Status = failed ? DwsTimelineItemStatus.Failed : DwsTimelineItemStatus.Ok,
OffsetMs = i * 6.5, DurationMs = failed ? null : 18 + i % 7 * 9
});
}
return spans;
}
}Interface-Description
| Name | Typ | Parameters | Description |
|---|---|---|---|
| ZoomInAsync | Task | Halves the visible time range around its centre. | |
| ZoomOutAsync | Task | Doubles the visible time range, up to the whole range. | |
| ResetZoomAsync | Task | Shows the whole range again. | |
| PanAsync(double visibleRangeShare) | Task | Moves the visible range by a share of its own length: negative earlier, positive later. | |
| SetVisibleRangeAsync(DateTime? start, DateTime? end) | Task | Shows the given part of the range; a null end stands for that end of the whole range. |
| Name | Typ | Default | Description |
|---|---|---|---|
| ChildContent | RenderFragment? | null | One or more DwsTimelineItem components to render inside the timeline. |
| Orientation | DwsLayoutOrientation | Vertical | Vertical stacks items top-to-bottom; Horizontal lays them out left-to-right (collapses to vertical on small screens). |
| Align | DwsTimelineAlign | Start | Start keeps a single left-aligned column; Alternate zig-zags items left/right around a centered line. Vertical orientation only. |
| Color | DwsColor | Primary | Theme color used for the spine, markers and progress bar. |
| Columns | int | 1 | Number of parallel columns for side-by-side timelines. |
| ShowProgress | bool | false | Shows a progress bar above the items. |
| ProgressPercentage | double | 0 | Progress value between 0 and 100. |
| EnableStepNavigation | bool | false | Renders Next/Previous buttons for stepping through the timeline. |
| CurrentStepIndex | int | 0 | Current step index. Supports two-way binding via @bind-CurrentStepIndex. |
| StepCount | int | 0 | Total number of steps, used to disable Next at the end. 0 = unbounded. |
| Layout | DwsTimelineLayout | List | List is the classic timeline of cards along a spine. Waterfall is a trace view: compact rows with a label column and a time track below a shared axis. |
| RangeStart | DateTime? | null | Start of the time range the bars are placed in. Null: the earliest Start of the rendered items. |
| RangeEnd | DateTime? | null | End of the time range. Null: the latest end (Start + Duration) of the rendered items. Set both ends when items are collapsed or virtualized. |
| VisibleRangeStart | DateTime? | null | Start of the zoomed-in part of the range; null shows it from its start. Supports two-way binding via @bind-VisibleRangeStart. |
| VisibleRangeEnd | DateTime? | null | End of the zoomed-in part of the range; null shows it up to its end. Supports two-way binding via @bind-VisibleRangeEnd. |
| ShowAxis | bool | true | Waterfall: shows the time axis. Its labels use µs, ms, s, min or h, chosen from the visible range. |
| ShowZoomControls | bool | true | Waterfall: shows the zoom in, zoom out, earlier, later and reset buttons. |
| EnableRangeSelection | bool | true | Waterfall: dragging over the axis zooms into the dragged range; a double click shows everything. |
| AxisTickCount | int | 5 | Roughly how many tick labels the axis shows (2 to 20). |
| MinBarWidth | double? | null | Smallest width of a duration bar in pixels, so a very short span stays visible. Default 2. |
| LabelWidth | double? | null | Waterfall: width of the label column in pixels. Default: 40% of the timeline, between 160 and 420 px. |
| RowHeight | double? | null | Waterfall: height of one row in pixels. Default 32. |
| IndentSize | double? | null | Indentation per nesting level in pixels. Default 16. |
| Height | double? | null | Height of the scrolling item area in pixels. |
| MaxHeight | double? | null | Maximum height of the scrolling item area in pixels. The axis stays pinned while the items scroll. |
| Selectable | bool | false | Items can be selected with a click, Enter or Space. Implied by @bind-SelectedKey. The timeline then is one tab stop that the arrow keys move. |
| SelectedKey | string? | null | The ItemKey of the selected item (an item without one uses its Name). Supports two-way binding via @bind-SelectedKey. |
| AriaLabel | string? | null | Accessible name of the item tree (Waterfall layout and selectable timelines). Defaults to a localised 'Timeline'. |
| Haptic | DwsHapticFeedback | DwsHapticFeedback.Selection | Touch feedback (IDwsHapticService, while the app has haptics on) when a tap selects an item and when the step buttons change the step. None switches it off. |
| Name | Typ | Description |
|---|---|---|
| CurrentStepIndexChanged | EventCallback<int> | Fired when the step index changes. Used by @bind-CurrentStepIndex. |
| OnStepChanged | EventCallback<int> | Fired when the user navigates to a different step. |
| VisibleRangeStartChanged | EventCallback<DateTime?> | Fired when zooming or panning moved the start of the visible range. Used by @bind-VisibleRangeStart. |
| VisibleRangeEndChanged | EventCallback<DateTime?> | Fired when zooming or panning moved the end of the visible range. Used by @bind-VisibleRangeEnd. |
| SelectedKeyChanged | EventCallback<string?> | Fired when the user selects an item. Used by @bind-SelectedKey. |
| Name | Typ | Default | Description |
|---|---|---|---|
| Element | ElementReference | The associated web component. May be null if accessed before the component is rendered. | |
| ComponentGuid | Guid | Unique identifier for the component. | |
| TypeString | string | The name of the component type, obtained from reflection. | |
| Authorized_RegisterEnabled | bool | false | Indicates whether this component is enabled through a permission registry. |
| Authorized_RegisterSelected | bool | false | Indicates whether this component is selected in permission selection mode. |
| GetInitializedState | bool | false | Returns whether the component is initialized. |
| GetRenderModeState | DwsRenderMode | Returns the current render mode. | |
| GetComponentState | DwsComponentStateType | Returns the current component state. | |
| GetIsInteractiveState | bool | false | Returns whether the component is interactive. |
| GetIsPrerenderingState | bool | false | Returns whether the component is prerendering. |
| GetComponentLoadingState | bool | false | Returns whether the component is loading. |
| IsFormBusy | bool | false | Whether the DwsForm (or DwsFormBusyRegion) around the component is locked because its submit handler is running. The state itself is the cascaded FormBusyState (IDwsFormBusyState). |
| Name | Typ | Parameters | Description |
|---|---|---|---|
| DebugInfo | void | Logs debug information about the component. | |
| UpdateState | void | Updates the component's state and triggers StateHasChanged. | |
| UpdateStateAsync | Task | Asynchronously updates the component's state and triggers StateHasChanged. | |
| Dispose | void | Disposes the component and releases resources. | |
| FocusAsync | ValueTask | bool containedInScrollableList | Sets focus to the component's element. |
| Name | Typ | Default | Description |
|---|---|---|---|
| Name | string | Required unique identifier for the component within its container. | |
| Visible | bool | true | Determines if the component is visible in the UI. |
| Disabled | bool | false | Disables the form control, ensuring it doesn't participate in form submission. |
| ComponentNameSpace | string | The namespace for permission-based access control. | |
| PermissionKey | string? | null | A stable key that takes the place of Name in the generated permission namespace (Page.PermissionKey): the stored permission survives a rename, and components that share a key share one permission entry. Null: keyed by Name. Read once, when the component registers; an explicit ComponentNameSpace wins. |
| Class | string | Optional CSS class names. | |
| Style | string | Optional in-line styles. | |
| Tag | object | An optional user-defined object to store any additional data with the component. | |
| BackReference | DwsReference | A reference to the enclosing component. | |
| ID | string | The HTML ID attribute for the component. | |
| AdditionalAttributes | Dictionary<string, object> | Additional HTML attributes for the component's root element. | |
| IgnorePermissionChecks | bool | false | Bypasses all permission checks for this component. |
| IgnorePermissionSelection | bool | false | Ignore permission selection mode for this component. |
| IgnoreFormBusy | bool | false | Takes the component out of the submit lock of the DwsForm (or DwsFormBusyRegion) around it: IsFormBusy stays false for it. |
| Name | Typ | Description |
|---|---|---|
| OnInitializedCallbackStarted | EventCallback | Callback when OnInitialized starts. |
| OnInitializedCallback | EventCallback | Callback during OnInitialized. |
| OnInitializedCallbackCompleted | EventCallback | Callback when OnInitialized completes. |
| OnInitializedAsyncCallbackStarted | EventCallback | Callback when OnInitializedAsync starts. |
| OnInitializedAsyncCallback | EventCallback | Callback during OnInitializedAsync. |
| OnInitializedAsyncCallbackCompleted | EventCallback | Callback when OnInitializedAsync completes. |
| OnIsComponentLoadingChanged | EventCallback<bool> | Callback when IsComponentLoading changes. |
| OnCurrentRenderModeChanged | EventCallback<DwsRenderMode> | Callback when CurrentRenderMode changes. |
| OnComponentStateChanged | EventCallback<DwsComponentStateType> | Callback when ComponentState changes. |
Interface-Description
| Name | Typ | Default | Description |
|---|---|---|---|
| Icon | string | "bi bi-calendar-event" | CSS icon class rendered in the marker. |
| Title | string | string.Empty | Item title. |
| Description | string | string.Empty | Item description. |
| ChildContent | RenderFragment? | null | Content below the description, and nested DwsTimelineItems, which become the item's children (hidden while collapsed if IsExpandable). |
| Color | DwsColor | Undefined | Overrides the parent DwsTimeline.Color for this item's marker. |
| IconPosition | DwsTimelineIconPosition | Left | Position of the marker: Left, Right or Top. |
| IconTemplate | RenderFragment? | null | Custom marker content, overrides Icon. |
| Timestamp | DateTime? | null | Optional date/time displayed next to the title. |
| TimestampFormatType | DwsDateTimeFormatType | Short | Format used to render Timestamp. |
| TimestampCustomFormat | string? | null | Custom format string, used when TimestampFormatType is CustomFormat. |
| IsExpandable | bool | false | Shows a toggle button; ChildContent is only rendered while IsExpanded is true. |
| IsExpanded | bool | false | Whether the item is expanded. Supports two-way binding via @bind-IsExpanded. |
| IsActive | bool | false | Highlights the item as the current step. Not needed with EnableStepNavigation: the timeline marks the current step itself. |
| StepIndex | int? | null | The item's step number for EnableStepNavigation (0-based). Not set: its position among the timeline's top-level items. |
| IsCompleted | bool | false | Marks the item as completed for progress/step visuals. |
| GroupName | string? | null | Items sharing the same group render a group header above them. |
| ItemKey | string? | null | Identifies the item for DwsTimeline.SelectedKey. Defaults to Name. |
| Level | int? | null | Nesting depth (0 = root). Null follows the markup: an item inside another item's ChildContent is one level deeper. |
| IsLoading | bool | false | Shows a loading indicator in place of the toggle, while the item's children are being fetched. |
| Start | DateTime? | null | When the item starts: places its bar against the timeline's range in the Waterfall layout. With no Duration and no WidthPercent the item is a point marker. |
| Duration | TimeSpan? | null | How long the item takes: the length of its bar, and the source of DurationText. |
| OffsetPercent | double? | null | Start of the bar in percent of the whole range (0 to 100). Wins over Start. |
| WidthPercent | double? | null | Length of the bar in percent of the whole range (0 to 100). Wins over Duration. |
| DurationText | string? | null | The duration as text. Null formats it from Duration (350 µs, 12.5 ms, 1.25 s) with localised units. |
| Status | DwsTimelineItemStatus | Undefined | Ok, Failed, Cancelled or Running: an icon with a text alternative and a theme colour. |
| StatusText | string? | null | Replaces the localised name of Status as its text alternative. |
| Badges | IEnumerable<string>? | null | Short texts shown as badges next to the title: a service, a node, a status code. |
| BadgeContent | RenderFragment? | null | Custom badge content, rendered after Badges. |
| Lane | string? | null | The lane (service, node) the item belongs to. Items of one lane share a colour. |
| LaneColor | DwsColor | Undefined | The lane's colour. Undefined picks one of eight theme-derived lane colours from the lane's name, so a lane keeps its colour. |
| Name | Typ | Description |
|---|---|---|
| OnItemClick | EventCallback<MouseEventArgs> | Fired when the item is clicked. |
| OnItemHover | EventCallback<MouseEventArgs> | Fired when the mouse hovers over the item. |
| OnItemFocus | EventCallback<FocusEventArgs> | Fired when the item receives keyboard focus. |
| IsExpandedChanged | EventCallback<bool> | Fired when the expanded state changes. Used by @bind-IsExpanded. |
| Name | Typ | Default | Description |
|---|---|---|---|
| Element | ElementReference | The associated web component. May be null if accessed before the component is rendered. | |
| ComponentGuid | Guid | Unique identifier for the component. | |
| TypeString | string | The name of the component type, obtained from reflection. | |
| Authorized_RegisterEnabled | bool | false | Indicates whether this component is enabled through a permission registry. |
| Authorized_RegisterSelected | bool | false | Indicates whether this component is selected in permission selection mode. |
| GetInitializedState | bool | false | Returns whether the component is initialized. |
| GetRenderModeState | DwsRenderMode | Returns the current render mode. | |
| GetComponentState | DwsComponentStateType | Returns the current component state. | |
| GetIsInteractiveState | bool | false | Returns whether the component is interactive. |
| GetIsPrerenderingState | bool | false | Returns whether the component is prerendering. |
| GetComponentLoadingState | bool | false | Returns whether the component is loading. |
| IsFormBusy | bool | false | Whether the DwsForm (or DwsFormBusyRegion) around the component is locked because its submit handler is running. The state itself is the cascaded FormBusyState (IDwsFormBusyState). |
| Name | Typ | Parameters | Description |
|---|---|---|---|
| DebugInfo | void | Logs debug information about the component. | |
| UpdateState | void | Updates the component's state and triggers StateHasChanged. | |
| UpdateStateAsync | Task | Asynchronously updates the component's state and triggers StateHasChanged. | |
| Dispose | void | Disposes the component and releases resources. | |
| FocusAsync | ValueTask | bool containedInScrollableList | Sets focus to the component's element. |
| Name | Typ | Default | Description |
|---|---|---|---|
| Name | string | Required unique identifier for the component within its container. | |
| Visible | bool | true | Determines if the component is visible in the UI. |
| Disabled | bool | false | Disables the form control, ensuring it doesn't participate in form submission. |
| ComponentNameSpace | string | The namespace for permission-based access control. | |
| PermissionKey | string? | null | A stable key that takes the place of Name in the generated permission namespace (Page.PermissionKey): the stored permission survives a rename, and components that share a key share one permission entry. Null: keyed by Name. Read once, when the component registers; an explicit ComponentNameSpace wins. |
| Class | string | Optional CSS class names. | |
| Style | string | Optional in-line styles. | |
| Tag | object | An optional user-defined object to store any additional data with the component. | |
| BackReference | DwsReference | A reference to the enclosing component. | |
| ID | string | The HTML ID attribute for the component. | |
| AdditionalAttributes | Dictionary<string, object> | Additional HTML attributes for the component's root element. | |
| IgnorePermissionChecks | bool | false | Bypasses all permission checks for this component. |
| IgnorePermissionSelection | bool | false | Ignore permission selection mode for this component. |
| IgnoreFormBusy | bool | false | Takes the component out of the submit lock of the DwsForm (or DwsFormBusyRegion) around it: IsFormBusy stays false for it. |
| Name | Typ | Description |
|---|---|---|
| OnInitializedCallbackStarted | EventCallback | Callback when OnInitialized starts. |
| OnInitializedCallback | EventCallback | Callback during OnInitialized. |
| OnInitializedCallbackCompleted | EventCallback | Callback when OnInitialized completes. |
| OnInitializedAsyncCallbackStarted | EventCallback | Callback when OnInitializedAsync starts. |
| OnInitializedAsyncCallback | EventCallback | Callback during OnInitializedAsync. |
| OnInitializedAsyncCallbackCompleted | EventCallback | Callback when OnInitializedAsync completes. |
| OnIsComponentLoadingChanged | EventCallback<bool> | Callback when IsComponentLoading changes. |
| OnCurrentRenderModeChanged | EventCallback<DwsRenderMode> | Callback when CurrentRenderMode changes. |
| OnComponentStateChanged | EventCallback<DwsComponentStateType> | Callback when ComponentState changes. |
Interface-Description
| Name | Typ | Parameters | Description |
|---|---|---|---|
| GetExpandedKeys | IReadOnlyCollection<object> | The keys of the expanded items. | |
| ExpandAllAsync | Task | Expands every loaded item that has children. | |
| CollapseAllAsync | Task | Collapses every item. |
| Name | Typ | Default | Description |
|---|---|---|---|
| Items | IEnumerable<TItem> | required | The root items to render. Replaces ItemsSource. |
| KeySelector | Func<TItem, object>? | null | Identity of an item: the key of ExpandedKeys, of the selection and of the rendered row. Without it the item itself is the key. |
| TitleSelector | Func<TItem, string>? | null | Maps an item to its title. |
| DescriptionSelector | Func<TItem, string>? | null | Maps an item to its description. |
| IconSelector | Func<TItem, string>? | null | Maps an item to its marker icon class. |
| TimestampSelector | Func<TItem, DateTime?>? | null | Maps an item to its timestamp. |
| GroupSelector | Func<TItem, string?>? | null | Maps an item to its group name. |
| IsActiveSelector | Func<TItem, bool>? | null | Maps an item to its active state. |
| IsCompletedSelector | Func<TItem, bool>? | null | Maps an item to its completed state, also used to auto-compute ShowProgress's percentage. |
| ItemTemplate | RenderFragment<TItem>? | null | Full override of per-item rendering: render one DwsTimelineItem in it. That item still gets the row's click, hover, active state, group header, level, expansion, selection key, timing, status and lane. |
| DetailTemplate | RenderFragment<TItem>? | null | Body of an item, shown below its description. Makes the item expandable. Not rendered while Virtualize is on. |
| ChildrenSelector | Func<TItem, IEnumerable<TItem>?>? | null | The children of an item. Makes the timeline a tree: child rows are indented below their parent. |
| HasChildrenSelector | Func<TItem, bool>? | null | Whether an item whose children are not there yet has any, so it gets a toggle. |
| ChildrenLoader | Func<TItem, Task<IEnumerable<TItem>>>? | null | Fetches the children of an item the first time it is expanded; the row shows a loading indicator meanwhile. A failed load is tried again on the next expand. |
| ExpandedKeys | IReadOnlyCollection<object>? | null | The keys of the expanded items. Supports two-way binding via @bind-ExpandedKeys. Null leaves the state to the component. |
| DefaultExpanded | bool | false | Items with children start expanded. Applied once, and only while ExpandedKeys is null. |
| StartSelector | Func<TItem, DateTime?>? | null | When an item starts. With no duration the item is a point marker on the axis. |
| DurationSelector | Func<TItem, TimeSpan?>? | null | How long an item takes. |
| OffsetPercentSelector | Func<TItem, double?>? | null | Start of an item's bar in percent of the whole range, instead of StartSelector. |
| WidthPercentSelector | Func<TItem, double?>? | null | Length of an item's bar in percent of the whole range, instead of DurationSelector. |
| DurationTextSelector | Func<TItem, string?>? | null | The duration as text. Null formats it from the duration. |
| StatusSelector | Func<TItem, DwsTimelineItemStatus>? | null | Maps an item to its status. |
| BadgesSelector | Func<TItem, IEnumerable<string>?>? | null | Short texts shown as badges: a service, a node, a status code. |
| BadgeTemplate | RenderFragment<TItem>? | null | Custom badge content per item, rendered after the BadgesSelector texts. |
| LaneSelector | Func<TItem, string?>? | null | The lane (service, node) of an item. Items of one lane share a colour. |
| LaneColorSelector | Func<TItem, DwsColor>? | null | The colour of an item's lane. Undefined (or no selector) picks a theme-derived colour from the lane's name. |
| GroupByLane | bool | false | Groups the root items by lane, in the order the lanes first appear, with a header per lane. |
| SelectedItem | TItem? | null | The selected item. Supports two-way binding via @bind-SelectedItem. |
| Selectable | bool | false | Items can be selected. Implied by @bind-SelectedItem. |
| Virtualize | bool | false | Renders only the rows in and around the visible part of the scrolling area (DwsVirtualize). Meant for the Waterfall layout with several hundred rows; every row then has the height RowHeight. |
| OverscanCount | int | 8 | Rows rendered beyond each edge of the visible area while Virtualize is on. |
| Layout | DwsTimelineLayout | List | Forwarded to the underlying DwsTimeline. |
| RangeStart | DateTime? | null | Start of the time range. Null derives it from every loaded item, collapsed ones included. |
| RangeEnd | DateTime? | null | End of the time range. Null derives it from every loaded item, collapsed ones included. |
| VisibleRangeStart | DateTime? | null | Forwarded to the underlying DwsTimeline. Supports two-way binding. |
| VisibleRangeEnd | DateTime? | null | Forwarded to the underlying DwsTimeline. Supports two-way binding. |
| ShowAxis | bool | true | Forwarded to the underlying DwsTimeline. |
| ShowZoomControls | bool | true | Forwarded to the underlying DwsTimeline. |
| EnableRangeSelection | bool | true | Forwarded to the underlying DwsTimeline. |
| AxisTickCount | int | 5 | Forwarded to the underlying DwsTimeline. |
| MinBarWidth | double? | null | Forwarded to the underlying DwsTimeline. |
| LabelWidth | double? | null | Forwarded to the underlying DwsTimeline. |
| RowHeight | double? | null | Height of one row in pixels (default 32 in the Waterfall layout). With Virtualize it is also the row height the virtualizer calculates with. |
| IndentSize | double? | null | Forwarded to the underlying DwsTimeline. |
| Height | double? | null | Forwarded to the underlying DwsTimeline. |
| MaxHeight | double? | null | Maximum height of the scrolling item area in pixels. With Virtualize and no height at all, 480. |
| AriaLabel | string? | null | Forwarded to the underlying DwsTimeline. |
| Haptic | DwsHapticFeedback | DwsHapticFeedback.Selection | Forwarded to the underlying DwsTimeline. |
| Orientation | DwsLayoutOrientation | Vertical | Forwarded to the underlying DwsTimeline. |
| Align | DwsTimelineAlign | Start | Forwarded to the underlying DwsTimeline. |
| Color | DwsColor | Primary | Forwarded to the underlying DwsTimeline. |
| Columns | int | 1 | Forwarded to the underlying DwsTimeline. |
| ShowProgress | bool | false | Forwarded to the underlying DwsTimeline; percentage is computed from IsCompletedSelector. |
| EnableStepNavigation | bool | false | Forwarded to the underlying DwsTimeline. |
| CurrentStepIndex | int | 0 | Forwarded to the underlying DwsTimeline. Supports two-way binding. |
| Name | Typ | Description |
|---|---|---|
| OnItemClick | EventCallback<TItem> | Fired with the source item when it is clicked. |
| OnItemHover | EventCallback<TItem> | Fired with the source item when it is hovered. |
| CurrentStepIndexChanged | EventCallback<int> | Fired when the step index changes. Used by @bind-CurrentStepIndex. |
| ExpandedKeysChanged | EventCallback<IReadOnlyCollection<object>> | Fired with the new set of expanded keys. Used by @bind-ExpandedKeys. |
| OnExpand | EventCallback<TItem> | Fired before an item expands (and before ChildrenLoader runs). |
| OnCollapse | EventCallback<TItem> | Fired after an item collapsed. |
| SelectedItemChanged | EventCallback<TItem?> | Fired when the user selects an item. Used by @bind-SelectedItem. |
| VisibleRangeStartChanged | EventCallback<DateTime?> | Fired when zooming or panning moved the start of the visible range. |
| VisibleRangeEndChanged | EventCallback<DateTime?> | Fired when zooming or panning moved the end of the visible range. |
| Name | Typ | Default | Description |
|---|---|---|---|
| Element | ElementReference | The associated web component. May be null if accessed before the component is rendered. | |
| ComponentGuid | Guid | Unique identifier for the component. | |
| TypeString | string | The name of the component type, obtained from reflection. | |
| Authorized_RegisterEnabled | bool | false | Indicates whether this component is enabled through a permission registry. |
| Authorized_RegisterSelected | bool | false | Indicates whether this component is selected in permission selection mode. |
| GetInitializedState | bool | false | Returns whether the component is initialized. |
| GetRenderModeState | DwsRenderMode | Returns the current render mode. | |
| GetComponentState | DwsComponentStateType | Returns the current component state. | |
| GetIsInteractiveState | bool | false | Returns whether the component is interactive. |
| GetIsPrerenderingState | bool | false | Returns whether the component is prerendering. |
| GetComponentLoadingState | bool | false | Returns whether the component is loading. |
| IsFormBusy | bool | false | Whether the DwsForm (or DwsFormBusyRegion) around the component is locked because its submit handler is running. The state itself is the cascaded FormBusyState (IDwsFormBusyState). |
| Name | Typ | Parameters | Description |
|---|---|---|---|
| DebugInfo | void | Logs debug information about the component. | |
| UpdateState | void | Updates the component's state and triggers StateHasChanged. | |
| UpdateStateAsync | Task | Asynchronously updates the component's state and triggers StateHasChanged. | |
| Dispose | void | Disposes the component and releases resources. | |
| FocusAsync | ValueTask | bool containedInScrollableList | Sets focus to the component's element. |
| Name | Typ | Default | Description |
|---|---|---|---|
| Name | string | Required unique identifier for the component within its container. | |
| Visible | bool | true | Determines if the component is visible in the UI. |
| Disabled | bool | false | Disables the form control, ensuring it doesn't participate in form submission. |
| ComponentNameSpace | string | The namespace for permission-based access control. | |
| PermissionKey | string? | null | A stable key that takes the place of Name in the generated permission namespace (Page.PermissionKey): the stored permission survives a rename, and components that share a key share one permission entry. Null: keyed by Name. Read once, when the component registers; an explicit ComponentNameSpace wins. |
| Class | string | Optional CSS class names. | |
| Style | string | Optional in-line styles. | |
| Tag | object | An optional user-defined object to store any additional data with the component. | |
| BackReference | DwsReference | A reference to the enclosing component. | |
| ID | string | The HTML ID attribute for the component. | |
| AdditionalAttributes | Dictionary<string, object> | Additional HTML attributes for the component's root element. | |
| IgnorePermissionChecks | bool | false | Bypasses all permission checks for this component. |
| IgnorePermissionSelection | bool | false | Ignore permission selection mode for this component. |
| IgnoreFormBusy | bool | false | Takes the component out of the submit lock of the DwsForm (or DwsFormBusyRegion) around it: IsFormBusy stays false for it. |
| Name | Typ | Description |
|---|---|---|
| OnInitializedCallbackStarted | EventCallback | Callback when OnInitialized starts. |
| OnInitializedCallback | EventCallback | Callback during OnInitialized. |
| OnInitializedCallbackCompleted | EventCallback | Callback when OnInitialized completes. |
| OnInitializedAsyncCallbackStarted | EventCallback | Callback when OnInitializedAsync starts. |
| OnInitializedAsyncCallback | EventCallback | Callback during OnInitializedAsync. |
| OnInitializedAsyncCallbackCompleted | EventCallback | Callback when OnInitializedAsync completes. |
| OnIsComponentLoadingChanged | EventCallback<bool> | Callback when IsComponentLoading changes. |
| OnCurrentRenderModeChanged | EventCallback<DwsRenderMode> | Callback when CurrentRenderMode changes. |
| OnComponentStateChanged | EventCallback<DwsComponentStateType> | Callback when ComponentState changes. |
