New-UDTable always shows all items

I just upgraded from 1.5.8 to 1.5.18. Now, every UDTable by default shows all items, rather than limiting the view. The -PageSize parameter isn’t respected either. For instance, the following produces a table displaying dozens of services rather than 10:

New-UDDashboard -Title “Services” -Content {

$data = Get-Service | Select-Object Name, Status
New-UDTable -Data $data -PageSize 10

}

Product: PowerShell Universal
Version: 1.5.18

Try turning on paging. We made this change because people didn’t like how the table decided when to page and when not to page. Now you can decide.

New-UDDashboard -Title “Services” -Content {

$data = Get-Service | Select-Object Name, Status
New-UDTable -Data $data -PageSize 10 -Paging
}

Thanks Adam! I like that approach better than the old one. You might want to update the docs with that parameter.

1 Like