syncfusion/blazor-ui-components-skills

syncfusion-blazor-timeline

Build interactive timeline components that display events and milestones sequentially.

Voir la source

Mode d’emploi

  1. Copiez la commande et examinez le paquet avant de l’installer dans votre environnement agent.
  2. Consultez le document original pour les outils, identifiants et environnements requis.
  3. Décrivez les entrées et le livrable souhaité ; comparez la sortie aux sources.
npx skills add https://github.com/syncfusion/blazor-ui-components-skills --skill syncfusion-blazor-timeline

Avant de commencer

  • L’installation n’inclut ni abonnement au modèle, ni quota API, ni accès aux fichiers.
  • Étoiles et installations reflètent l’activité, pas un test indépendant de qualité ou de sécurité.
Document Skill original

Rendu depuis le dépôt source en conservant titres, exemples, code, tableaux, liens et images.

Implementing Blazor Timeline Component

The Syncfusion Blazor Timeline component enables you to display a series of events or milestones in a chronological sequence. It's ideal for visualizing project progress, historical timelines, delivery tracking, or process workflows.

When to Use This Skill

Use the Timeline component when you need to:

  • Display events in chronological order (project phases, shipping tracking, workflow steps)
  • Show before/after information with opposite content (dates paired with descriptions)
  • Create vertical or horizontal timeline layouts
  • Customize visual appearance (colors, dots, connectors)
  • Render complex content with templates
  • Handle component lifecycle events

Component Overview

The Timeline component renders a series of items sequentially, with each item containing:

  • Content: Main information or description
  • OppositeContent: Secondary information displayed opposite to content
  • Dot: Visual indicator (customizable with icons, images, or text)
  • Connector: Line connecting items visually

Key capabilities:

  • Multiple alignment modes (Before, After, Alternate, AlternateReverse)
  • Horizontal and vertical orientations
  • Custom item styling and disabled states
  • Event callbacks for component lifecycle
  • Template-based rendering for advanced layouts
  • Reverse order rendering

Documentation and Navigation Guide

Getting Started

📄 Read: references/getting-started.md

  • Install Syncfusion.Blazor.Layouts and Themes NuGet packages
  • Configure imports and register Blazor service
  • Add stylesheet and script resources
  • Create your first basic timeline
  • Run and test the application

Timeline Alignment

📄 Read: references/timeline-alignment.md

  • Control content display with Alignment property
  • Before: Content placed before/left, OppositeContent after/right
  • After: Content placed after/right, OppositeContent before/left
  • Alternate: Items arranged alternately regardless of orientation
  • AlternateReverse: Reverse alternate arrangement
  • Using OppositeContent with alignments

Timeline Items

📄 Read: references/timeline-items.md

  • Add TimelineItem components with Content directive
  • String content vs template content approaches
  • OppositeContent for dual information display
  • Customize dots with DotCss (icons, images, text)
  • Disable items with Disabled property
  • Apply custom CSS classes with CssClass

Timeline Orientation

📄 Read: references/timeline-orientation.md

  • Vertical orientation: Display items sequentially top-to-bottom (default)
  • Horizontal orientation: Display items side-by-side
  • Combine orientation with alignment for different layouts
  • Responsive considerations

Timeline Events

📄 Read: references/timeline-events.md

  • Created: Fires when component rendering is completed
  • ItemRendered: Fires after each item is rendered
  • Access event arguments and item information
  • Common event handling patterns

Styling & Customization

📄 Read: references/timeline-styling-customization.md

  • Connector styling (common and individual)
  • Dot color, size, shadow, and variant customization
  • CSS variables for dot appearance (--dot-size, --dot-outer-space, --dot-border)
  • Dot outline mode (e-outline class)
  • Component-level CSS classes

Template & Advanced Patterns

📄 Read: references/timeline-templates.md

  • Template directive for complete item customization
  • Access Item and ItemIndex from template context
  • Create progress bars, custom connectors, and indicators
  • Advanced layout patterns

API Reference

📄 Read: references/api-reference.md

  • Complete SfTimeline component properties
  • TimelineItem properties and configuration
  • TimelineAlignment enumeration values
  • TimelineOrientation enumeration values
  • TimelineRenderedEventArgs event arguments
  • CSS classes and CSS variables
  • Code examples for all APIs
  • Common implementation patterns

Quick Start Example

razor
@using Syncfusion.Blazor.Layouts

<div style="height: 350px;">
    <SfTimeline>
        <TimelineItems>
            <TimelineItem>
                <Content>Event 1</Content>
                <OppositeContent>2024-01-01</OppositeContent>
            </TimelineItem>
            <TimelineItem>
                <Content>Event 2</Content>
                <OppositeContent>2024-01-15</OppositeContent>
            </TimelineItem>
            <TimelineItem>
                <Content>Event 3</Content>
                <OppositeContent>2024-02-01</OppositeContent>
            </TimelineItem>
        </TimelineItems>
    </SfTimeline>
</div>

Common Use Cases

1. Order/Shipping Timeline

Display order status with timestamps and locations using alignment with opposite content.

2. Project Milestone Timeline

Show project phases with start/end dates and descriptions using horizontal orientation.

3. Historical Timeline

Present historical events vertically with dates on one side and descriptions on the other using Alternate alignment.

4. Progress Tracking

Visualize workflow steps with custom dot colors and disabled states for completed vs. pending items.

Key Properties

PropertyTypePurpose
AlignmentTimelineAlignment enumPositions content (Before, After, Alternate, AlternateReverse)
OrientationTimelineOrientation enumLayout direction (Vertical, Horizontal)
ReverseboolReverses item order
CssClassstringCustom CSS class for styling
CreatedeventFires when component rendering completes
ItemRenderedeventFires after each item renders

Item Properties:

PropertyTypePurpose
ContentRenderFragmentPrimary information
OppositeContentRenderFragmentSecondary information
DotCssstringCSS class for dot styling (icons, images)
DisabledboolDisables the item
CssClassstringCustom CSS class for item styling

Key Setup Steps

  1. Install NuGet packages: Syncfusion.Blazor.Layouts, Syncfusion.Blazor.Themes
  2. Add imports: @using Syncfusion.Blazor.Layouts in _Imports.razor
  3. Register service: builder.Services.AddSyncfusionBlazor() in Program.cs
  4. Include stylesheet: Add material3.css to index.html
  5. Create timeline: Use <SfTimeline> with <TimelineItems> collection

Tâches connexes

du même dépôt

Autres Skills

Tous les Skills
syncfusion
Communauté

syncfusion-blazor-calendars

Comprehensive guide for implementing Syncfusion Blazor calendar components including Calendar, DatePicker, DateRangePicker, DateTimePicker, and TimePicker. Use this when building date selection interfaces, date range selection, date/time input, calendar displays, date constraints, formatting, globalization, and accessible calendar experiences in Blazor applications. Covers all calendar components from Syncfusion.Blazor.Calendars package.

installations
1
GitHub Stars
4
Mis à jour
13 oct.
syncfusion
Communauté

syncfusion-blazor-card

Build responsive card layouts with Syncfusion Blazor Card component. Use this when creating reusable card containers with headers, images, content, action buttons, and custom styling. This skill covers setup, structure, layouts, interactivity, and advanced customization.

installations
1
GitHub Stars
4
Mis à jour
13 oct.
syncfusion
Communauté

syncfusion-blazor-heatmap-chart

Implements the Syncfusion Blazor HeatMap Chart component for multi-dimensional data visualization using color-coded grids. Use this when working with heatmaps, data matrices, correlation displays, or bubble heatmap variants. This skill covers installation, data binding, axis configuration, color palettes, legends, tooltips, and accessibility features.

installations
1
GitHub Stars
4
Mis à jour
13 oct.
syncfusion
Communauté

syncfusion-blazor-maps

Implement interactive spatial data visualization with Syncfusion Maps component for Blazor. Use this skill when user needs to display geographic data, add markers/polygons to maps, integrate map providers (Google Maps, Bing Maps, Azure Maps, OpenStreetMap), create choropleth visualizations, handle user interactions with maps, export/print maps, support internationalization, implement accessibility features, or customize map styling and appearance.

installations
1
GitHub Stars
4
Mis à jour
13 oct.