Hi,
How can I make the UDCard to be located in the center?
Side Q, how do I change the location of the button as default it’s on the left side of the card I want it on the right side.
Product: PowerShell Universal
Version: 1.4.6
Hi,
How can I make the UDCard to be located in the center?
Side Q, how do I change the location of the button as default it’s on the left side of the card I want it on the right side.
Product: PowerShell Universal
Version: 1.4.6
You can use rows and columns along with UDStyle to accomplish this.
New-UDRow -Columns {
New-UDColumn -LargeSize 3 -Content {}
New-UDColumn -LargeSize 6 -Content {
New-UDStyle -Style ".MuiCardActions-root { display: block; }`r`n.MuiButtonBase-root { float: right }" -Content {
$Footer = New-UDCardFooter -Content {
New-UDButton -Variant text -Text 'Action'
}
$Header = New-UDCardHeader -Title "Header"
New-UDCard -Header $Header -Footer $Footer
}
}
}