Set-UDElement
Set properties of an element.
Last updated
Was this helpful?
Was this helpful?
Required? false
Position? 2
Default value
Accept pipeline input? false
Aliases
Accept wildcard characters? false
-Broadcast [<SwitchParameter>]
Whether to update this element on all connected clients.
Required? false
Position? named
Default value False
Accept pipeline input? false
Aliases
Accept wildcard characters? falseRequired? false
Position? 3
Default value
Accept pipeline input? false
Aliases
Accept wildcard characters? false
<CommonParameters>
This cmdlet supports the common parameters: Verbose, Debug,
ErrorAction, ErrorVariable, WarningAction, WarningVariable,
OutBuffer, PipelineVariable, and OutVariable. For more information, see
about_CommonParameters (https://go.microsoft.com/fwlink/?LinkID=113216).PS >New-UDButton -Id 'setElement1' -Text 'Disable Me' -OnClick {
PS > Set-UDElement -Id 'setElement1' -Properties @{
PS > 'disabled' = $true
PS > }
PS > }
Properties|Disables a button.
-------------------------- EXAMPLE 2 --------------------------
PS >New-UDButton -Id 'setElement2' -Text 'Disable Me' -OnClick {
PS > Set-UDElement -Id 'setElement2' -Properties @{
PS > 'disabled' = $true
PS > } -Broadcast
PS > }
Broadcast|Disables a button and broadcasts it to all connected dashboards.
-------------------------- EXAMPLE 3 --------------------------
PS >New-UDElement -Tag 'div' -Id 'setElement3' -Content {
PS > New-UDTypography -Text 'Hello World'
PS > }
PS > New-UDButton -Text 'Click Me' -OnClick {
PS > Set-UDElement -Id 'setElement3' -Content {
PS > New-UDTypography -Text 'Goodbye World'
PS > }
PS > }
Content|Sets the content of an element.