Feature Request: New-UdTableRow

Product: PowerShell Universal
Version: 3.0.0(beta2)

Hi, Would it be possible to have ‘New-UdTableRow’ as well as ‘New-UdTableColumn’?

In my ideal scenario, this would have ‘New-UdTableColumn’ with a UdTransition button in one of the columns, this then spans a new row for that EventData object?

Something like…

New-UdTableRow -Id "Row1" -Contents {
    New-UdTableColumn -Property 1 -Title "1"
    New-UdTableColumn -Property 2 -Title "2"
    New-UdTableColumn -Property 3 -Title "3"
    New-UdTableColumn -Property 4 -Title "4" -Render {
        New-UDTransition -Id 'test' -Content {
            Set-Element -Id "Row2" -Content {
                New-UdTableColumn -Property 1 -Title "1"
                New-UdTableColumn -Property 2 -Title "2"
                New-UdTableColumn -Property 3 -Title "3"
            }
        } -In -Fade -Timeout 1000
        New-UDSwitch -OnChange {
            Set-UDElement -Id 'test' -Properties @{
                in = $EventData -eq 'True'
            }
        } -Checked $true
    }
}
New-UdTableRow -Id "Row2" -Contents {
}

Are you looking for something like this?

Yes, that collapsable table is exactly what i am looking for…

Cool. I will open a feature request for it.

Thanks! I also have a use case for the spanning table if that could be added in!

1 Like

Thanks @adam I can see this in the latest release! works well!