controls/pipeline-grid.ps1
function New-PipelineGrid { param($Job) New-UDGrid -Title "Pipeline" -Headers @("Value", "Type", "Actions") -Properties @("Value", "Type", "Actions") -Endpoint { $JobPipelineOutputObjects= Get-UAJobPipelineOutput -Job $Job $JobPipelineOutputObjects | ForEach-Object { $PipeLineObject = $_ $PipeLineDetailsButton = New-UDButton -Text "" -Icon folder -OnClick { New-PipelineObjectDetailsModal -PipelineObject $PipeLineObject } $ActionControls = New-UDElement -Tag div -Content{ New-UDTooltip -Content{$PipeLineDetailsButton} -TooltipContent {"Show Pipeline Object Details"} } [PSCustomObject]@{ Value = $_.ToString() Type = $_.GetType().Name Actions = $ActionControls } } | Out-UDGridData } } |