Product: PowerShell Universal Version: 4.3.0
Dear friends
I have a simple card that is showing ad computers from different time span
Something like this:
$last7days = "23"
New-UDTypography -Text "Active PC last 7 days: "
New-UDChip -Label $last7days -Size small -style @{"margin-left" = "142px" }
$last30days = "123"
New-UDTypography -Text "Active PC last 30 days: "
New-UDChip -Label $last30days -Size small -style @{"margin-left" = "142px" }
And what I am trying to achieve is to align UDTypography to the left (which is by default) and UDChip to the right
How to do this in most flexible and simple way ?
Now im struggling with this margin-left values but any changes to the card or text breaks it apart
but the next problem is
im using pages not apps for this dash (app is main landing page and all other apps are pages in main app)
and as far as I know I am not allowed to use functions on the pages so I will have to use this code for every ud chip
and I have like 20 on this page - it will be a mess
Any cleaner solution ?
and for future deployments - maybe a more systemic solution for such needs ? just like align command for every graphical component ?
also i can add this function to main landing app (which I did) and it works in child pages
but anyway - maybe we can think of adding such behavior to the parameters of the graphical elements in future releases,