New-UDTable -ToolbarContent not displaying anything?

According to the documentation, -ToolbarContent takes a scriptblock. So, I specify

-ToolbarContent {
    New-UDTypography -Text "Test toolbar"
}

When looking at the table object using Get-UDElement I see this…

However, on the dashboard nothing is displayed (and to be fair, I’m not sure exactly what to expect from -ToolbarContent as it’s not in the documentation). Is there another parameter needed to get this to work? I’m hoping to add some custom buttons to interact with the table while being contained in the same object.

Product: PowerShell Universal
Version: 3.6.4

It looks like we are missing a check to see if the toolbar content is provided. Can you try adding -ShowSearch to New-UDTable to see if you content shows up alongside the search bar?

1 Like

Got it now. So it looks like MuiToolbar-root doesn’t get created by -ToolbarContent, but -ShowSearch creates it.