Project

PSWriteHTML

Generate HTML reports, dashboards, and emails from PowerShell without writing HTML, CSS, or JavaScript.

Stars 1,019
Forks 115
Open issues 54
PowerShell Gallery downloads 7,576,901
Release v1.41.0
Language: PowerShell Updated: 2026-10-03
Command

New-NavFloatWidget

Module PSWriteHTML

Creates a new navigation float widget with customizable options for different types of widgets.

Syntax

New-NavFloatWidget [[-Items] <ScriptBlock>] [[-Title] <String>] [[-Type] <Dots|SelectBox|List|Toggle|Text>] [<CommonParameters>]
#
Parameter set: All Parameter Sets

Description

The New-NavFloatWidget function creates a new navigation float widget with various customizable options such as Dots, SelectBox, List, Toggle, and Text. Each type of widget has specific styling and functionality.

Examples

Authored help example

EXAMPLE 1

New-NavFloatWidget -Items { New-NavFloatWidgetItem -Name "Home" -Href "/home" -IconBrands "fab fa-home" -IconColor "blue" } -Type "Dots"
Creates a new navigation float widget with Dots type, displaying a single item named "Home" with a home icon in blue color.

EXAMPLE 2

New-NavFloatWidget -Items { New-NavFloatWidgetItem -Name "About" -Href "/about" -IconRegular "far fa-address-card" -IconColor "green" } -Type "List" -Title "About Us"
Creates a new navigation float widget with List type, displaying a single item named "About" with an address card icon in green color and a title "About Us".

EXAMPLE 3

New-NavFloatWidget -Items { New-NavFloatWidgetItem -Name "Toggle 1" -Href "/toggle1" } -Type "Toggle" -Title "Toggle Items"
Creates a new navigation float widget with Toggle type, displaying a single item named "Toggle 1" linking to "/toggle1" and a title "Toggle Items".

Parameters

-Items ScriptBlock optionalposition: 0
Specifies the script block defining the items to be included in the widget.
-Title String optionalposition: 2
Specifies the title of the widget.
-Type String optionalposition: 1
Specifies the type of the widget. Valid values are: Dots, SelectBox, List, Toggle, Text.
Possible values: Dots, SelectBox, List, Toggle, Text

Common Parameters

This command supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable.

For more information, see about_CommonParameters.