# New-TableButtonColumnVisibility

Creates a new table button for column visibility control.

Project

PSWriteHTML

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

[View on GitHub](https://github.com/EvotecIT/PSWriteHTML) [Visit Website](#) [Releases](https://github.com/EvotecIT/PSWriteHTML/releases/tag/v1.41.0) [Changelog](#) [Get package](https://www.powershellgallery.com/packages/PSWriteHTML/1.40.0)

Stars **1,025**

Forks **114**

Open issues 

PowerShell Gallery downloads **7,576,901**

Release **v1.45.0**

Language: PowerShell Updated: 2026-11-19

Command 

**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>]
```

[#](#method-new-tablebuttoncolumnvisibility-string-string-string-string-switchparameter-int32)

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

### Example 1

```powershell
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](https://learn.microsoft.com/powershell/module/microsoft.powershell.core/about/about_commonparameters).

Evotec API Reference Copyright 2026 Evotec Services

<!-- PowerForge markdown artifact sha256:3EEC1EA913948D3D01E4B236277427FE0F6F5134AA4B73DB79F0AABC8E00D591 -->
