Éditeur de code
Composant éditeur de code pour les applications Universal.
Mis à jour
Ce contenu vous a-t-il été utile ?
Ce contenu vous a-t-il été utile ?
New-UDCodeEditor -Height '500' -Language 'powershell' -Code '#Hello, world!'New-UDCodeEditor -Height '500' -Language 'powershell' -Code '#Hello, world!' -Id 'editor'
New-UDButton -Text 'Get Code' -OnClick {
Show-UDToast -Message (Get-UDElement -id 'editor').Code
}New-UDCodeEditor -Height '500' -Language 'powershell' -Code '#Hello, world!' -Id 'editor'
New-UDButton -Text 'Get Code' -OnClick {
Set-UDElement -Id 'editor' -Properties @{
code = "# Hello!"
}
}New-UDCodeEditor -Language powershell -Height 100 -Options @{ fontSize = 10 }