Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork1.5k
MudTimeline - Can I make MudTimeLineItem clickable?#6008
Unanswered
progMorten asked this question inQ&A
-
Hi! Is this not possible, or am I just not fully understanding the API methods? |
BetaWas this translation helpful?Give feedback.
All reactions
Replies: 1 comment
-
You can read the currently selected <style> .mud-timeline-item {cursor: pointer; }/* change the mouse cursor to indicate that MudTimelineItems are clickable */</style><MudTimeline@onclick="OnClick"@bind-SelectedIndex="@selectedIndex"TimelinePosition="TimelinePosition.Left"><MudTimelineItem>Meeting 1</MudTimelineItem><MudTimelineItem>Meeting 2</MudTimelineItem><MudTimelineItem>Meeting 3</MudTimelineItem></MudTimeline><br/>Meeting details: @details@code { int selectedIndex; string details = ""; void OnClick() { details = $"Meeting {selectedIndex + 1}"; }} |
BetaWas this translation helpful?Give feedback.
All reactions
0 replies
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment