Hey Guys, question around New-UDElement inside a UDGrid?, currently trying to set the color status of a service which works with UDTable, but similar doesn’t work with Grid.
The error thats being thrown is b.hasOwnProperty is not a function,
Thank you for this post, been racking my brain for a few days getting colors to work in New-UdGrid
This did not work …
New-UDElement -Tag ‘div’ -Attributes @{ style = @{ ‘backgroundColor’ = $BackgroundColor; color = ForegroundColor } } -Content { _.state }
This Works …
New-UDElement -Tag ‘div’ -Attributes @{ className = “orange white-text” } -Content { $_.state }