How do you align the udcards horizontally? I literally spent hours and couldn’t figure it out. Am I to use UDGrid instead? if so, does it work the same as the card? I will be nesting a table and a photo in the card or grid but I prefer for the cards to populate horizontally instead of the vertical default. Seems really easy so I’m hoping to hear from someone on this one soon. Thanks
# Put code you'd like to run during dashboard startup here.
New-UDDashboard -Title 'PowerShell Universal' -Pages @(
# Create a page using the menu to the right ->
# Reference the page here with Get-UDPage
New-UDPage -Name 'Home' -Content {
New-UDStack -Direction row -Children {
New-UDCard -Title 'Card 1' -Text 'Card 1'
New-UDCard -Title 'Card 2' -Text 'Card 2'
New-UDCard -Title 'Card 3' -Text 'Card 3'
}
}
)
Yup! this is perfect thank you Adam. I started looking into udstack but hadn’t tried it. I wasn’t sure if it would change what I already had going on because i’m not a strong coder at all.
I moved the “Create-Cards” function directly under the “New-UDStack” cmdlet. As far as the New-UD column, I added it to the $cards variable. I have to admit, I had “help” with that part. Here’s the portion of the script that was changed: