I cannot get the Grid to Auto Sort. Is there some ‘trick’ that I am missing?
The URL is not showing.
I have inspected the Object, and the $_.url value does contain a URL, as a [string]
Not sure what I should do differently here…
Bonus Points
Is there any way to adjust the font size in the Grid?
Is there any way to allow the ‘user’ to choose to display more items per page, or do I have to manually create some form of UDInput function to get that functionality?
You property hashtable say ‘url’ and not “infourl” as you data set.
The sort, u need to set it as the header name, so change from ‘0’ to ‘priority’
For the user change on page size, you need to make a input and have the user define it there and then reload the page with the grid using the session variable or what you store it in on the pagesize parameter.
Have a look here:- https://poshud.com/New-UDGrid
then at the bottom of the page is the parameters and you will find:- DefaultSortColumn Specifies the column index of the default sort column. This index begins with zero. DefaultSortDescending Specifies whether to sort descending or ascending by default. SwitchParameter named
As for sorting the font you need to look here:- https://docs.universaldashboard.io/look-and-feel/themes#available-properties and you will see how you could adjust this in the CSS.
But that is not the object you send to the grid. It’s the pscustomobject, and the url property in that have you called ‘InfoURL’ so you need to use that name