Command
New-TableButtonColumnVisibility
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 SetsDescription
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
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
- Specifies the text to display on the button.
- -CollectionLayout String
- 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
- Specifies the position of the collection (fixed or dropdown). Default is 'dropdown'.
- Possible values:
fixed,dropdown - -CollectionTitle String
- Specifies the title for the column visibility control collection. Default is 'Visibility control'.
- -DropUp SwitchParameter
- Indicates whether the collection should be displayed as a drop-up menu.
- -Fade Int32
- 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.