Button
Universal Dashboard is now a part of PowerShell Universal. This documentation is for reference to the v2 version of Universal Dashboard and is no longer maintained.
PowerShell Universal Documentation can be found here.

Button

Contained

1
New-UDMuButton -Text 'Submit' -Variant contained
Copied!
Contained Button

Flat

1
New-UDMuButton -Text 'Submit' -Variant flat
Copied!
Flat button

Outlined

1
New-UDMuButton -Text 'Submit' -Variant outlined
Copied!
Outlined Button

Icons

1
New-UDMuButton -Text 'Buy' -Variant contained -Icon (New-UDMuIcon -Icon bitcoin -Size '4x')
Copied!
Icon Button

Full Width

1
New-UDMuButton -Text 'Submit' -Variant contained -FullWidth
Copied!
Full Width Button

OnClick Handler

1
New-UDMuButton -Text 'Submit' -Variant contained -OnClick {
2
Show-UDToast -Message "You clicked me!" -Position topLeft
3
}
Copied!
Button onClick Handler

Custom Colors

1
New-UDMuButton -Text 'Submit' -Variant contained -Style @{ backgroundColor = "blue"; color = "white" }
Copied!
Colored Button
Last modified 7mo ago