How do I get the New-UDAutoComplete to be preloaded with an array when loading a page och by clicking a button.
New-UDAutocomplete -Id Id1 -Label "Values" -OnLoadOptions {
"Test1", "Test2", "Test3" | Where { $_ -like "*$Body*" } | ConvertTo-Json
} -Multiple
New-UDButton -Text Copy -OnClick {
Set-UDElement -Id Id1 -Attributes @{Value = "Test1", "Test2" }
}
The code above worked in 3.9.7 but not in 4.1.14
Product: PowerShell Universal
Version: 4.1.14