For the complete documentation index, see llms.txt. This page is also available as Markdown.

New-UDTableColumn

Defines a table column.

Synopsis

Defines a table column.

Syntax

New-UDTableColumn [[-Id] <String>] [-Property] <String> [[-Title] <String>] [[-OnRender] <ScriptBlock>] [-ShowSort] [-ShowFilter] [[-FilterType] <String>] [[-Style] <Hashtable>] [[-Width] <Int32>] [[-MinWidth] <Int32>] [-IncludeInSearch] [-IncludeInExport] [-DefaultSortColumn] [[-Align] <String>] [-Truncate] [[-SortType] <String>] [-Hidden] [[-Options] <String[]>] [<CommonParameters>]

Description

Defines a table column. Use this cmdlet in conjunction with New-UDTable's -Column property. Table columns can be used to control many aspects of the columns within a table.

Parameters

-Id

The ID of the component. It defaults to a random GUID.

Required?                    false
Position?                    1
Default value                [Guid]::NewGuid().ToString()
Accept pipeline input?       false
Aliases
Accept wildcard characters?  false

-Property

The property to select from the data.

-Title

The title of the column to show at the top of the table.

-OnRender

-FilterType

The type of filter to use with this column. Valid values are "text", "select", "fuzzy", "slider", "range", "date", "number", 'autocomplete', 'multiselect'

-Style

A hashtable of style attributes to apply to the column.

-Width

The width of this column in pixels.

-MinWidth

-Align

The alignment of the column. Supported values are 'center', 'inherit', 'justify', 'left', 'right'.

-SortType

Whether to sort this column as a string or datetime.

-Options <String[]>

The options to use for a select filter.

Outputs

-------------------------- EXAMPLE 1 --------------------------

Last updated

Was this helpful?