Hello guys,
Button attributes are not working on 2.5.2 as before. Can anyone help me to achieve the same?
I had the below code when I was using 2.3.2 and it was working. After upgrading to 2.5.2, it stopped working
if ($SetupIP -eq 'Offline')
{
$LoginButton = New-UDButton -Floating -Icon sign_in
#$LoginButton.Attributes.target = "_blank"
#$LoginButton.Attributes.rel = "noopener noreferrer"
#$LoginButton.Attributes.href = "http://$SetupIP"
$LoginButton.Attributes.disabled = "true"
$LoginButton
}
else
{
$LoginButton = New-UDButton -Floating -Icon sign_in
#$LoginButton.Attributes.target = "_blank"
#$LoginButton.Attributes.rel = "noopener noreferrer"
#$LoginButton.Attributes.href = "http://$SetupIP"
$LoginButton
}
Can you help me solve this issue?
Thanks in advance.