New-UDElement
SYNOPSIS
Creates a new React element.
SYNTAX
New-UDElement [-Tag <String>] [-Attributes <Hashtable>] [-Content <ScriptBlock>] [-ClassName <String>]
[-Endpoint <Endpoint>] [-ArgumentList <Object[]>] [-AutoRefresh] [-RefreshInterval <Int32>] [-Id <String>]
[<CommonParameters>]DESCRIPTION
Creates a new React element. This can also be used to create HTML tags.
EXAMPLES
Example 1
New-UDElement -Tag 'div' -Attributes @{
style = @{
color = "red"
}
} -Content {
"Hello!"
}Basic Element|Creates a div with red text.
Example 2
Event Handler|An element with an event handler.
PARAMETERS
-ArgumentList
Not required. For backwards compatibility.
-Attributes
A hashtable of attributes to apply to the element.
-AutoRefresh
Whether to autorefresh the element's endpoint.
-Content
The content of the element.
-Endpoint
Dynamic content for the element.
-Id
An ID for the element.
-RefreshInterval
The number of seconds to wait between auto refreshes.
-Tag
The HTML tag.
-ClassName
A class to apply to the element.
CommonParameters
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -Verbose, -WarningAction, -WarningVariable, and -ProgressAction. For more information, see about_CommonParameters.
INPUTS
None
OUTPUTS
System.Object
NOTES
RELATED LINKS
Last updated
Was this helpful?