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-TableButtonColumnVisibility

Module PSWriteHTML

Creates a new table button for column visibility control.

Syntax

New-TableButtonColumnVisibility [[-ButtonName] <String>] [[-CollectionLayout] <columns|two-column|three-column|four-column>] [[-CollectionPosition] <fixed|dropdown>] [[-CollectionTitle] <String>] [-DropUp] [[-Fade] <Int32>] [<CommonParameters>]
#
Parameter set: All Parameter Sets

Description

This function creates a new table button for controlling the visibility of columns in a table. It allows customization of the button text, layout, and other properties.

Examples

Authored help example

EXAMPLE 1

New-TableButtonColumnVisibility -ButtonName "Toggle Columns" -CollectionTitle "Column Visibility" -CollectionPosition "fixed" -CollectionLayout "two-column" -DropUp -Fade 500
Creates a new table button with the specified properties.

Parameters

-ButtonName String optionalposition: 0
Specifies the text to display on the button.
-CollectionLayout String optionalposition: 3
Specifies the layout of the collection (columns, two-column, three-column, four-column). Default is 'columns'.
Possible values: columns, two-column, three-column, four-column
-CollectionPosition String optionalposition: 2
Specifies the position of the collection (fixed or dropdown). Default is 'dropdown'.
Possible values: fixed, dropdown
-CollectionTitle String optionalposition: 1
Specifies the title for the column visibility control collection. Default is 'Visibility control'.
-DropUp SwitchParameter optional
Indicates whether the collection should be displayed as a drop-up menu.
-Fade Int32 optionalposition: 4
Specifies the fade effect duration when toggling visibility.

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.