Product: PowerShell Universal
Version: 4.0.8
Greetings,
I am trying to style a New-UDSelect cmdlet inside a New-UDElement cmdlet.
My Code:
New-UDStack -id StackElement -Direction column -Content {
New-UDSelect -Id "FirstSelectID" -Label "Company Name" -Option {
New-UDSelectGroup -Name "Select a Number" -Option {
New-UDSelectOption -Name "one" -Value "one"
New-UDSelectOption -Name "two" -Value "two"
}
}
New-UDElement -ClassName ElementClass -Id "ElementID" -Tag div -Endpoint {
New-UDSelect -classname SecondSelectClass -Id "SecondSelectID" -Label "Environment" -Option {
New-UDSelectOption -Name "one" -Value "one"
New-UDSelectOption -Name "two" -Value "two"
}
}
}
When I lay out the code, the second Select box does not behave like the first select box:
When looking at the code I have identified the class which is causing this however, I can not see a way to modify it:
The other problem is that the class css-pe0pe4-MuiFormControl-root
appears to rename itself, which means whenever a change is made.
Does anyone have any ideas how i can set a value to a property under this style?
I have attempted wrapping a New-UDForm around this, however this does now allow me to set a static class name.