So the New-UDTransferList works properly now when preselecting items and the onchange event returns the selected items which is great.
But how do I make it bigger?
My items are all pretty long group names and it’s a long list.
It would be great if I could make the 2 lists at least twice or even triple their default size and have the height at least twice or three times the default too.
Product: PowerShell Universal
Version: 2.5.0 (Tuesday Nightly build)
Not sure if there’s a native way to do this but I know you can use New-UDStyle for things like this.
Not exactly perfect but as an example:
New-UDStyle -Style '
align: center;
width: 100%;
.MuiPaper-root {
width: 100%
}
.MuiList-root {
width: 100%
}
.MuiGrid-item {
width: 30%
}
' -Content {
New-UDTransferList -Item {
New-UDTransferListItem -Name 'test1' -Value 1
New-UDTransferListItem -Name 'test2' -Value 2
New-UDTransferListItem -Name 'test3' -Value 3
New-UDTransferListItem -Name 'test4' -Value 4
New-UDTransferListItem -Name 'test5' -Value 5
}
}
}
You might have to inspect the elements and play around with it to get it how you need.