New-UDAutocomplete icon support?

According to this GitHub req:

New-UDAutocomplete should have Icon support now in the label / before the “textbox” like this (it’s from a textbox):

But I can’t find any documentation regarding it, @adam

Product: PowerShell Universal
Version: 3.0

Sorry about that. The docs haven’t been updated but you should be able to do this:

    New-UDAutocomplete -Options @("Test", "No", "Yes") -Icon (New-UDIcon -Icon 'Users') -onEnter {
        Show-UDToast ((Get-UDElement -Id 'ac').value)
    } -Id 'ac'


1 Like