This code should create four rows with two columns each:
) -Body (
New-UDCardBody -Content {
New-UDRow -Columns {
New-UDColumn {
New-UDTypography -Variant 'caption' -Text "IP: $($Session:CGSupportHomePageState.SelectedServer.IP)"
}
New-UDColumn {
New-UDTypography -Variant 'caption' -Text "PrivateNetIP: $($Session:CGSupportHomePageState.SelectedServer.PrivateNetIP)"
}
}
New-UDRow -Columns {
New-UDColumn {
New-UDTypography -Variant 'caption' -Text "VirtualNetIP1: $($Session:CGSupportHomePageState.SelectedServer.VirtualNetIP1)"
}
New-UDColumn {
New-UDTypography -Variant 'caption' -Text "VirtualNetIP2: $($Session:CGSupportHomePageState.SelectedServer.VirtualNetIP2)"
}
}
New-UDRow -Columns {
New-UDColumn {
New-UDTypography -Variant 'caption' -Text "Domain: $($Session:CGSupportHomePageState.SelectedServer.Domain)"
}
New-UDColumn {
New-UDTypography -Variant 'caption' -Text "Datacenter: $($Session:CGSupportHomePageState.SelectedServer.Datacenter)"
}
}
New-UDRow -Columns {
New-UDColumn {
New-UDTypography -Variant 'caption' -Text "ServerRole: $($Session:CGSupportHomePageState.SelectedServer.ServerRole)"
}
New-UDColumn {
New-UDTypography -Variant 'caption' -Text "Active: $($Session:CGSupportHomePageState.SelectedServer.Active)"
}
}
}
) -Footer (
However, it instead creates two rows with 4 columns:
Am I using it wrong? Seems like in 2.9 I always created rows and then columns inside rows, but New-UDRow seems to produce columns. I also don’t know why New-UDColumns is creating rows inside New-UDRow but creates columns on its own.