Evotec

Project

PSWriteHTML

PSWriteHTML is an open-source PowerShell project with packages, release history, and working documentation.

Stars 995
Forks 114
Open issues 69
PowerShell Gallery downloads 7,436,513
Release v1.41.0
Language: PowerShell Updated: 2026-04-11

API Reference

Function

New-NavFloatWidget

Namespace PSWriteHTML

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

Remarks

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".
        

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.

Syntax

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

Parameters

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