Add-UDElement
Adds an element to a parent element.
Last updated
Was this helpful?
Was this helpful?
Required? true
Position? 2
Default value
Accept pipeline input? false
Aliases
Accept wildcard characters? false
-Broadcast [<SwitchParameter>]
Whether to update all connected dashboards (all users).
Required? false
Position? named
Default value False
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-UDElement -Tag 'div' -Id 'addElement1' -Content {}
PS > New-UDButton -Text 'Click Me' -OnClick {
PS > Add-UDElement -ParentId 'addElement1' -Content {
PS > New-UDTypography -Text 'Hello World'
PS > }
PS > }
Add Element|Adds an element to a parent element.
-------------------------- EXAMPLE 2 --------------------------
PS >New-UDElement -Tag 'div' -Id 'addElement2' -Content {}
PS > New-UDButton -Text 'Click Me' -OnClick {
PS > Add-UDElement -ParentId 'addElement2' -Content {
PS > New-UDTypography -Text 'Hello World'
PS > } -Broadcast
PS > }
Broadcast|Adds an element to a parent element and broadcasts it to all connected dashboards.