New-UDElement
SYNOPSIS
Crea un nuovo elemento React.
SYNTAX
New-UDElement [-Tag <String>] [-Attributes <Hashtable>] [-Content <ScriptBlock>] [-ClassName <String>]
[-Endpoint <Endpoint>] [-ArgumentList <Object[]>] [-AutoRefresh] [-RefreshInterval <Int32>] [-Id <String>]
[<CommonParameters>]DESCRIPTION
Crea un nuovo elemento React. Può essere utilizzato anche per creare tag HTML.
EXAMPLES
Esempio 1
New-UDElement -Tag 'div' -Attributes @{
style = @{
color = "red"
}
} -Content {
"Hello!"
}Elemento di base|Crea un div con testo rosso.
Esempio 2
Gestore di eventi|Un elemento con un gestore di eventi.
PARAMETERS
-ArgumentList
Non obbligatorio. Per retrocompatibilità.
-Attributes
Una hashtable di attributi da applicare all'elemento.
-AutoRefresh
Indica se aggiornare automaticamente l'endpoint dell'elemento.
-Content
Il contenuto dell'elemento.
-Endpoint
Contenuto dinamico per l'elemento.
-Id
Un ID per l'elemento.
-RefreshInterval
Il numero di secondi di attesa tra gli aggiornamenti automatici.
-Tag
Il tag HTML.
-ClassName
Una classe da applicare all'elemento.
CommonParameters
Questo cmdlet supporta i parametri comuni: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -Verbose, -WarningAction, -WarningVariable e -ProgressAction. Per maggiori informazioni, consulti about_CommonParameters.
INPUTS
Nessuno
OUTPUTS
System.Object
NOTES
RELATED LINKS
Ultimo aggiornamento
È stato utile?