Custom Variable Scopes
Custom Variable Scopes
Cache Scope
$Cache:Computers = Get-ADComputerNew-UDMonitor -Title Computers -Endpoint {
$Cache:Computers.Length | Out-UDMonitorData
}Page Scope
New-UDForm -Content {
New-UDTextbox -Id 'Name'
} -OnSubmit {
$Page:Name = $EventData.Name
Sync-UDElement -Id 'Name'
}
New-UDDynamic -Content {
New-UDTypography $Page:Name
}Session Scope
Last updated
Was this helpful?