Icon
Icon component for Universal Dashboard
Last updated
Was this helpful?
Icon component for Universal Dashboard
Last updated
Was this helpful?
Was this helpful?
New-UDIcon -Icon 'address_book' New-UDIcon -Icon 'address_book' -Size 'sm'
New-UDIcon -Icon 'address_book' -Size 'lg'
New-UDIcon -Icon 'address_book' -Size '5x'
New-UDIcon -Icon 'address_book' -Size '10x'New-UDIcon -Icon 'address_book' -Size '5x' -Rotation 90New-UDIcon -Icon 'address_book' -Size '5x' -BorderNew-UDIcon -Icon 'address_book' -Size '5x' -Style @{
backgroundColor = "red"
}New-UDTextbox -Id 'txtIconSearch' -Label 'Search'
New-UDButton -Text 'Search' -OnClick {
Sync-UDElement -Id 'icons'
}
New-UDElement -tag 'p' -Content {}
New-UDDynamic -Id 'icons' -Content {
$Icons = [Enum]::GetNames([UniversalDashboard.Models.FontAwesomeIcons])
$IconSearch = (Get-UDElement -Id 'txtIconSearch').value
if ($null -ne $IconSearch -and $IconSearch -ne '')
{
$Icons = $Icons.where({ $_ -match $IconSearch})
}
foreach($icon in $icons) {
New-UDIcon -Icon $icon -Size lg
}
}