alexk
December 5, 2022, 11:03pm
1
Is it possible to add a -Name -Value pair in a New-UDAutocomplete similar to a New-UDSelectOption? I’m looking at a potential use case where I’d like a user to be able to filter a list of names by typing into the Autocomplete, but for the backend logic to operate on that name’s corresponding username.
Product: PowerShell Universal
Version: 2.12.2
adam
December 7, 2022, 4:07pm
2
We currently do not support this and there is actually a long-standing issue opened for it. Feel free to upvote here:
opened 05:40PM - 05 Apr 21 UTC
enhancement
PowerShell Universal
**Is your feature request related to a problem? Please describe.**
I really lik… e the New-UDAutocomplete input component, however the options parameter only allows having an array of strings and not label:value pairs like the New-UDSelect allows for. I currently use the component created by PSDevUK New-UDSingleSelector, which is exactly what I'm looking for, however it does not work well with dashboard v3 dark theme in PSU.
**Describe the solution you'd like**
New-UDAutocomplete with the options to have a the listed items be in an arrary of label:value pairs.
**Describe alternatives you've considered**
Used New-UDSingleSelector from psdevuk, but that component doesn't work well with the new dark theme of dashboard v3
**Additional context**
https://marketplace.universaldashboard.io/Dashboard/UniversalDashboard.UDSingleSelector
https://forums.ironmansoftware.com/t/new-multi-or-single-select-component-for-universaldashboard/1902/57