Table missing footer

When I display a table in a dashboard that has a smaller number of items, the footer doesn’t appear (showing rows per page, number of pages, etc.). The threshold seems to be when there are 19 or more items, it starts showing the footer. Not having the footer leaves one in the unfortunate position of not being able to view items beyond the first page (although you can sort and still see some of them that way).

I can reproduce the issue with this code:

New-UDDashboard -Title "Hello, World!" -Content {

$Data = @(
    @{Dessert = 'Frozen yoghurt'; Calories = 159; Fat = 6.0; Carbs = 24; Protein = 4.0}
    @{Dessert = 'Ice cream sandwich'; Calories = 159; Fat = 6.0; Carbs = 24; Protein = 4.0}
    @{Dessert = 'Eclair'; Calories = 159; Fat = 6.0; Carbs = 24; Protein = 4.0}
    @{Dessert = 'Cupcake'; Calories = 159; Fat = 6.0; Carbs = 24; Protein = 4.0}
    @{Dessert = 'Gingerbread'; Calories = 159; Fat = 6.0; Carbs = 24; Protein = 4.0}
    @{Dessert = 'Gingerbread2'; Calories = 159; Fat = 6.0; Carbs = 24; Protein = 4.0}
    @{Dessert = 'Gingerbread3'; Calories = 159; Fat = 6.0; Carbs = 24; Protein = 4.0}
) 

New-UDTable -Data $data
}
Product: PowerShell Universal
Version: 1.5.8

you can use -ShowPagination to force the footer to show, or as you said if your data is 20 or more item it will show automatically

1 Like

it’s by design

Ok, -ShowPagination will work just fine. Thanks!

But I must admit I find the design odd, that the default settings would show users a partial list of items, with no visual indication there are more items or a way to view those items.

let say you have 15 items in your data by default the list show 5 items in a page you can control this by specified -PageSize, for example PageSize 15 will show 15 items on each page