I’m trying to create a mailto link in the footer of my dashboard. Is using New-UDHTML the correct way to go about this as I’m having all kinds of issues getting it to work?
Part of the problem lies with PS not liking the < symbol in the HTML. I’ve tried just about every combination of escape characters I can think of but at best the script will run however, in place of the link I get this text: UniversalDashboard.Models.RawHtml
If someone could point me in the right direction or even provide a working example, that would be awesome
Cheers
Was not able to use New-UDHTML but here a way to complete your issue. Need a license version to modify the footer.
Set-UDLicense -License (Get-Content $PSScriptRoot\license.txt -Raw)
$myFooter = New-UDFooter -Links @(
New-UDLink -Text "newsadmin@whitehouse.gov" -Url "mailto:newsadmin@whitehouse.gov"
)
$Dashboard = New-UDDashboard -title "Footer Test" -content {
new-udcard -Size small -Content {
}
} -Footer $myFooter
Get-UDDashboard | Stop-UDDashboard
Start-UDDashboard -Dashboard $Dashboard -Port 10000 -AutoReload
Thanks @boats2000 - that’s great , just what I needed
Now to try and wrangle the text into a different location
Cheers