Product: PowerShell Universal
Version: 1.5.13
Dashboard: 3.3.2
We’re trying to make a single text box input using New-UDTextbox -Mask parameter.
cmdlet:
New-UDTextbox -Id ‘MACAddress’ -Placeholder “00:00:00:00:00:00” -Mask @(‘/[0-9a-fA-F]/’, ‘/[0-9a-fA-F]/’, “:”, ‘/[0-9a-fA-F]/’, ‘/[0-9a-fA-F]/’, “:”, ‘/[0-9a-fA-F]/’, ‘/[0-9a-fA-F]/’, “:”, ‘/[0-9a-fA-F]/’, ‘/[0-9a-fA-F]/’, “:”, ‘/[0-9a-fA-F]/’, ‘/[0-9a-fA-F]/’, “:”, ‘/[0-9a-fA-F]/’, ‘/[0-9a-fA-F]/’)
Pasting a MAC address into the textbox works perfect, removes invalid characters like hyphens and puts everything in the right spot.
Typing the characters in on the other hand doesn’t work so well. You type a single character and then it loses focus, you have to click in the box again and type another character, one character at a time.
I copied the example found at https://docs.ironmansoftware.com/dashboard/components/inputs/textbox#mask and get the same issue with that.