Skip to content

Headers

This page details the actions available to Headers.

Update

To update the value, icon, or size of a Header on the page, you can use Update-PodeWebHeader:

New-PodeWebContainer -NoBackground -Content @(
    New-PodeWebHeader -Id 'my-header' -Size 1 -Value 'My Header' -Icon 'home'

    New-PodeWebButton -Name 'Update Header' -ScriptBlock {
        $rand = Get-Random -Minimum 0 -Maximum 3
        $icon = (@('cat', 'home', 'information'))[$rand]
        Update-PodeWebHeader -Id 'my-header' -Value "My Header $($rand)" -Icon $icon
    }
)

Note

A -Size of 0 will leave the Header size unchanged - this is the default.