I discovered UD early this year, but just now able to start diving in and building out a POC. I’m new to UD, and I’m trying to learn v3, as v2 is now legacy. Unfortunately all the YouTube videos, the Udemy course, and most of the forum topics are for v2.
I’m trying to follow along with the Udemy video to learn UD, but I’m having to translate the v2 code in the course to the new v3. One of the first things in the course is to learn Layouts, using New-UDLayout; however that cmdlet does not exist in v3. When I search the v3 documentation, the only thing under Layouts is Grid (New-UDGrid), and to note, this v3 cmdlet is different from the v2 cmdlet (different parameters): https://docs.ironmansoftware.com/dashboard/components/layout/grid
And that error url translates to: Objects are not valid as a React child (found: TypeError: Cannot read property ‘map’ of undefined). If you meant to render a collection of children, use an array instead.
Can someone help me understand how to use v3 New-UDGrid? Any working examples?
LOL…I tried that exact thing earlier and it did not work. Well, it did, but 2 seconds later the page said I needed to refresh, then it no longer worked. Now it’s working…every time
I’ll blame gremlins for this one.
I have something similar in UD 3.2.1 running on PSU 1.5.2 where if i use Set-UDElement -Id “SomeButton” -Attributes @{hidden = $false} or @{hidden = $true} the dashboard crashes with
Minified React error:
Maybe im getting a bit far into the New-UdDynamic here! can you try that example with UdDynamic not UdElement? Or does UdDynamic have different attributes? The only 2 i have tested is New-UdButton and New-UdDynamic.
I have a workaround anyway but would be good to get this working.