The timeline control can be used to display a sequence of events over time.
Create a basic timeline with information on both sides of the timeline.
New-UDTimeline -Children {
New-UDTimelineItem -Content {
'Breakfast'
} -OppositeContent {
'7:45 AM'
}
New-UDTimelineItem -Content {
'Welcome Message'
} -OppositeContent {
'9:00 AM'
}
New-UDTimelineItem -Content {
'State of the Shell'
} -OppositeContent {
'9:30 AM'
}
New-UDTimelineItem -Content {
'General Session'
} -OppositeContent {
'11:00 AM'
}
}
New-UDTimeline -Children {
New-UDTimelineItem -Content {
'Breakfast'
} -OppositeContent {
'7:45 AM'
}
New-UDTimelineItem -Content {
'Welcome Message'
} -OppositeContent {
'9:00 AM'
}
New-UDTimelineItem -Content {
'State of the Shell'
} -OppositeContent {
'9:30 AM'
}
New-UDTimelineItem -Content {
'General Session'
} -OppositeContent {
'11:00 AM'
}
} -Position alternate
New-UDDashboard -Title 'PowerShell Universal' -Content {
New-UDTimeline -Children {
New-UDTimelineItem -Content {
'Breakfast'
} -OppositeContent {
'7:45 AM'
} -Color 'error'
New-UDTimelineItem -Content {
'Welcome Message'
} -OppositeContent {
'9:00 AM'
} -Color 'info'
New-UDTimelineItem -Content {
'State of the Shell'
} -OppositeContent {
'9:30 AM'
} -Color 'success'
New-UDTimelineItem -Content {
'General Session'
} -OppositeContent {
'11:00 AM'
} -Color 'grey'
} -Position alternate
}
New-UDTimeline -Children {
New-UDTimelineItem -Content {
'Breakfast'
} -OppositeContent {
'7:45 AM'
} -Icon (New-UDIcon -Icon Microsoft)
New-UDTimelineItem -Content {
'Welcome Message'
} -OppositeContent {
'9:00 AM'
} -Icon (New-UDIcon -Icon Apple)
New-UDTimelineItem -Content {
'State of the Shell'
} -OppositeContent {
'9:30 AM'
} -Icon (New-UDIcon -Icon NetworkWired)
New-UDTimelineItem -Content {
'General Session'
} -OppositeContent {
'11:00 AM'
} -Icon (New-UDIcon -Icon User)
} -Position alternate