New-UDGridLayout - Error on using

Hello,

I am using 2.1.2. I originally forgot about activating it under the module section. I activated it and added it to my code, however, I am getting this error:

 One or more errors occurred

The expression after '&' in a pipeline element produced an object that was not valid. It must result in a command name, a script block, or a CommandInfo object.

I am not sure if I am doing anything wrong.

Seems like a bug in that component. I will take a look and see if I can figure out what’s wrong.

1 Like

I just tried this and am not seeing an error. This is how I tried it. Can you share your script?

New-UDDashboard -Title "Hello, World!" -Content {
    New-UDGridLayout -Content {
        New-UDCard -Title 'Nice' -Content {}
        New-UDCard -Title 'Nice' -Content {}
        New-UDCard -Title 'Nice' -Content {}
        New-UDCard -Title 'Nice' -Content {}
    } -Draggable
}
1 Like

@adam - Thank you. I had a dumb moment. It did not work when I had that section wrapped with a New-UDRow & New-UDColumn, taking those out allowed me to design the layout. Thank you so much for your time & patience! I really appreciate it!