HtmlForgeX

API Reference

Command

New-HtmlXTableColumnOption

Namespace HtmlForgeX.PowerShell
Outputs
HtmlForgeX.DslOptions.Tables.TableColumnOption

Configures an individual DataTables column.

Remarks

Use inside New-HtmlXTable { }.

Examples

Imported script example

New-HtmlXTableColumnOption -Name "DisplayName" -Width "40%" -TextAlign Left
        

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-HtmlXTableColumnOption [-FontWeight <Normal>] [-Index <int>] [-Name <string>] [-Orderable <bool>] [-ResponsivePriority <int>] [-Searchable <bool>] [-Style <Highlight>] [-TextAlign <Left>] [-Type <String>] [-Visible <bool>] [-Width <string>] [<CommonParameters>]
#

Parameters

FontWeight DataTablesFontWeight optionalposition: namedpipeline: falsevalues: 7
Font weight for the column. Possible values: Normal, Bold, Light, SemiBold, ExtraBold, Lighter, Bolder
Possible values: Normal, Bold, Light, SemiBold, ExtraBold, Lighter, Bolder
Index int optionalposition: namedpipeline: false
Zero-based column index to target.
Name string optionalposition: namedpipeline: false
Column header name to target.
Orderable bool optionalposition: namedpipeline: false
Whether the column is orderable.
ResponsivePriority int optionalposition: namedpipeline: false
Responsive priority value.
Searchable bool optionalposition: namedpipeline: false
Whether the column is searchable.
Style DataTablesColumnStyle optionalposition: namedpipeline: falsevalues: 10
Column style preset. Possible values: None, Highlight, Muted, Success, Warning, Danger, Info, Primary, Secondary, Dark, Light
Possible values: Highlight, Muted, Success, Warning, Danger, Info, Primary, Secondary, Dark, Light
TextAlign DataTablesTextAlign optionalposition: namedpipeline: falsevalues: 6
Text alignment for the column. Possible values: Left, Center, Right, Justify, Start, End
Possible values: Left, Center, Right, Justify, Start, End
Type DataTablesColumnType optionalposition: namedpipeline: falsevalues: 10
Optional DataTables column type. Possible values: String, Numeric, Date, Html, Currency, Percentage, FileSize, IpAddress, Duration, Natural
Possible values: String, Numeric, Date, Html, Currency, Percentage, FileSize, IpAddress, Duration, Natural
Visible bool optionalposition: namedpipeline: false
Visibility flag for the column.
Width string optionalposition: namedpipeline: false
Column width CSS value (e.g. 120px, 10%).

Outputs

HtmlForgeX.DslOptions.Tables.TableColumnOption