API Reference
Command
New-HtmlXTableColumnOption
Configures an individual DataTables column.
Remarks
Use inside New-HtmlXTable { }.
Examples
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
- 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
- Zero-based column index to target.
- Name string
- Column header name to target.
- Orderable bool
- Whether the column is orderable.
- ResponsivePriority int
- Responsive priority value.
- Searchable bool
- Whether the column is searchable.
- Style DataTablesColumnStyle
- 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
- Text alignment for the column. Possible values: Left, Center, Right, Justify, Start, End
- Possible values:
Left,Center,Right,Justify,Start,End - Type DataTablesColumnType
- 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
- Visibility flag for the column.
- Width string
- Column width CSS value (e.g. 120px, 10%).
Outputs
HtmlForgeX.DslOptions.Tables.TableColumnOption