@shykhovtsov - This is because the data is a number and not a string. We likely need to convert it to a string in order for contains to work. We need to remove that toast as well.
New-UDDataGrid -LoadRows {
$Data = @(
@{ Name = 'Adam'; Number = [string](Get-Random) }
@{ Name = 'Tom'; Number = [string](Get-Random) }
@{ Name = 'Sarah'; Number = [string](Get-Random) }
)
$Data | Out-UDDataGridData -Context $EventData -TotalRows $Rows.Length
} -Columns @(
New-UDDataGridColumn -Field name -Filterable
New-UDDataGridColumn -Field number -Filterable
) -AutoHeight $true
Hello @adam I’ve been using New-UDElement with style attributes to set the colors on rows depending on the returned data (completed, Failed, Error etc… However, I’d prefer to color the whole row. Can you please show an example how this can be achieved using -OnRowStyle for New-UDTable based on the row data? I don’t seem to find anything on this new table feaures in the documentation. Cheers!
The PWA is super bare-bones right now. You can click the App Available button to install it as an app but other than that there isn’t any configuration provided.
Thanks for the update, first time posting so be kind
Since updating I’m getting an odd issue with the home page on the app I am working on. The home page is showing UDCards that do not belong to that app, they belong to another test app I have. The ‘burger’ menu shows all the correct links but the home page is showing wrong ones.
PSU is running on our own Windows server and I have restarted since updating but its still showing, what is, wrong content. Has anyone else seen this or have a way to fix it before I delete the app completely and start again?
Hello @adam,
This has worked great! Cheers! However, I’ve failed to find an example for -HeaderStyle. While I can control the backgroundColor the switch seems to ignore the font color. For example: -HeaderStyle @{backgroundColor = ‘grey’; color = ‘white’}. What are the accepted orr correct HeaderStyle attributes?