Hi,
why is $t not passed to the modal in this?
$t = “Titel”
New-UDButton -Icon wifi -OnClick {
Show-UDModal -Content {
New-UDHeading -Text $t
}
}
Hi,
why is $t not passed to the modal in this?
$t = “Titel”
New-UDButton -Icon wifi -OnClick {
Show-UDModal -Content {
New-UDHeading -Text $t
}
}
Welcome to the UD forum
I think the problem is that you have to pass the variable to the button first … find more info in the dochttps://docs.universaldashboard.io/components/button (at the bottom)
Thanks!