New-UDAriaAttribute
Create a single ARIA or role attribute for a supported PowerShell Universal app control.
SYNOPSIS
Creates an ARIA attribute for supported app controls.
SYNTAX
New-UDAriaAttribute -Label -Value <String>
New-UDAriaAttribute -LabelledBy -Value <String>
New-UDAriaAttribute -DescribedBy -Value <String>
New-UDAriaAttribute -Description -Value <String>
New-UDAriaAttribute -Controls -Value <String>
New-UDAriaAttribute -Expanded -Value <String>
New-UDAriaAttribute -HasPopup -Value <String>
New-UDAriaAttribute -Hidden -Value <String>
New-UDAriaAttribute -Invalid -Value <String>
New-UDAriaAttribute -Required -Value <String>
New-UDAriaAttribute -Role -Value <String>-LabeledBy is an alias for -LabelledBy. Choose exactly one attribute switch for each call.
DESCRIPTION
Use New-UDAriaAttribute in a supported control's -Aria script block to create an ARIA or role attribute without manually constructing the DOM attribute name.
EXAMPLES
PARAMETERS
Pass exactly one attribute switch with -Value:
-Label
aria-label
-LabelledBy or -LabeledBy
aria-labelledby
-DescribedBy
aria-describedby
-Description
aria-description
-Controls
aria-controls
-Expanded
aria-expanded
-HasPopup
aria-haspopup
-Hidden
aria-hidden
-Invalid
aria-invalid
-Required
aria-required
-Role
role
-Value specifies the value of the selected ARIA or role attribute.
OUTPUTS
System.Collections.Hashtable
Was this helpful?