PowerShell Universal
v4
Ask or search…
K

Timeline

Time line control for PowerShell Universal Apps
The timeline control can be used to display a sequence of events over time.

Basic Timeline

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'
}
}

Alternating 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'
}
} -Position alternate

Colors

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
}

Icons

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

API

  • New-UDTimeline
  • New-UDTimelineItem
Last modified 10mo ago