Properties
Properties for Portal Widgets.
You can define the Initialize-PSUWidget
function to add properties to Widgets. Parameters are displayed as properties in both the widget editor and page designer.
Initialize-PSUWidget
Define a function named Initialize-PSUWidget
to accept parameters and define initialization logic for when the widget is shown.
function Initialize-PSUWidget {
param(
[Parameter()]
$Param1
)
if ($Param1 -eq 'Script')
{
$Variables["Type"] = "Script"
}
}
Last updated
Was this helpful?